]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: new device mount syntax
authorVenky Shankar <vshankar@redhat.com>
Wed, 14 Jul 2021 10:05:52 +0000 (15:35 +0530)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 1 Dec 2021 16:23:22 +0000 (17:23 +0100)
commitda12148405094d341dfd5251b46d12a3a93f7f9d
tree1af1fdb7d2359d796f3529940e3addfef6fa20d8
parenta984667843aa7e70991a326b2e9f041c5e3da441
ceph: new device mount syntax

Old mount device syntax (source) has the following problems:

- mounts to the same cluster but with different fsnames
  and/or creds have identical device string which can
  confuse xfstests.

- Userspace mount helper tool resolves monitor addresses
  and fill in mon addrs automatically, but that means the
  device shown in /proc/mounts is different than what was
  used for mounting.

New device syntax is as follows:

  cephuser@fsid.mycephfs2=/path

Note, there is no "monitor address" in the device string.
That gets passed in as mount option. This keeps the device
string same when monitor addresses change (on remounts).

Also note that the userspace mount helper tool is backward
compatible. I.e., the mount helper will fallback to using
old syntax after trying to mount with the new syntax.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/super.c
fs/ceph/super.h