]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: set metadata["root"] from mount method when it's called with a pathname 12505/head
authorJeff Layton <jlayton@redhat.com>
Fri, 16 Dec 2016 15:19:18 +0000 (10:19 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 16 Dec 2016 15:19:18 +0000 (10:19 -0500)
commit9f8810008c82eebe6e354e7e321e33a3dcba8407
treea04f79622c4e93775aeb64a4051eee6b84c8abc9
parent478551e988d96408ba45eda97f77ec860ede2b12
client: set metadata["root"] from mount method when it's called with a pathname

Currently, we only set the root properly config file or the
--client_metadata command line option. If a userland client program
tries to call ceph_mount with a pathname, it's not being properly
set.

Since we already hold the mutex, we can just update it directly.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc