]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mount: introduce new mount syntax
authorVenky Shankar <vshankar@redhat.com>
Thu, 6 May 2021 04:59:27 +0000 (00:59 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 30 Nov 2021 06:13:34 +0000 (01:13 -0500)
commit8606f5839d5cc9979237eb4a2dbad06658881e70
treeef458facd196cc1d220b8704dd913ab45c3f6f0c
parent63ac4f9e48ea60e30f66c9e03e3ad20dc96983ce
mount: introduce new mount syntax

Old mount device (source) have the following problems:

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

- device shown in /proc/mounts is different that what
  is used to mount.

New proposed syntax is as follows:

  # mount -t ceph cephuser@<cluster-fsid>.mycephfs2=/path

The cluster-id is optional but is always passed to the kernel
via mount() syscall (by fetching it from cluster configuration
file if available).

The mount helper tries the mounting the file system with
the new device syntax, falling back to using the old
syntax if required.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/mount/mount.ceph.c