]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: populate metadata during mount 12951/head
authorJohn Spray <john.spray@redhat.com>
Fri, 13 Jan 2017 00:30:28 +0000 (00:30 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 16 Jan 2017 21:43:37 +0000 (22:43 +0100)
commit61ca8fc351d8647c6836fc6b96b625ba29071f3c
tree750180cef203ab5fd7da10ef7e579fed44d44c47
parentfcb8df1b57a9fcff75fa7496485f2ac5e85e7973
client: populate metadata during mount

This way we avoid having to over-write the "root"
metadata during mount, and any user-set overrides (such
as bad values injected by tests) will survive.

Because Client instances may also open sessions without
mounting to send commands, add a call into populate_metadata
from mds_command as well.

Fixes: http://tracker.ceph.com/issues/18361
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 1dbff09ad553f9ff07f4f4217ba7ece6c2cdc5d2)
src/client/Client.cc
src/client/Client.h