]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: populate metadata during mount 13085/head
authorJohn Spray <john.spray@redhat.com>
Fri, 13 Jan 2017 00:30:28 +0000 (00:30 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 24 Jan 2017 14:20:06 +0000 (14:20 +0000)
commit89dcd8b6287da7d97af0e7cad45ee023a5a39811
tree42bb4534fbcea7e49e493edf7cb9b082e479660c
parent72b24f0f47bebaed793d7b75ce0eacc3c1533ab5
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