]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mount.ceph: fix the handling of new-syntax device names 44456/head
authorJeff Layton <jlayton@redhat.com>
Tue, 4 Jan 2022 15:13:31 +0000 (10:13 -0500)
committerJeff Layton <jlayton@redhat.com>
Tue, 4 Jan 2022 16:25:03 +0000 (11:25 -0500)
commitc8c341860fcef7a3fa4c73dbe6c6c8037693891c
tree8646bfbd53276311aa432219ce9bd2839bcbe623
parente77b44cf5a8ce9997e2863409187e3793c71d460
mount.ceph: fix the handling of new-syntax device names

With the new mount device syntax, the mount helper will end up
prepending "client." to whatever device string is passed down. If you
then go to recreate that mount later from the info in /proc/mounts,
you'll end up getting back an error because it'll try to prepend
"client." again.

There is no reason to send a fully-qualified principal name down to the
kernel since it can only use client.* principals anyway. Fix the mount
helper to track the unqualified name internally and only fully-qualify
it when we're scraping the config for info.

Fixes: https://tracker.ceph.com/issues/53765
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mount/mount.ceph.c