]> 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>
Mon, 8 Nov 2021 02:31:03 +0000 (03:31 +0100)
commitfb154fed1f81ffea59fa5ff32dffe702c9ef6d8f
tree23c27ef293791fd052e1a79214001b2f3fba0fc7
parent7daeae8b782c38bfdb4f0f0ad7aa791398daef44
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