Project

General

Profile

Actions

Feature #47277

closed

implement new mount "device" syntax for kcephfs

Added by Jeff Layton over 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
kceph
Labels (FS):
Pull request ID:

Description

Currently, a mount has to pass in a device string like this:

mon_addr1,mon_addr2:/path

It's problematic for a couple of reasons:

  1. mounts to the same cluster but with different fsnames or creds have identical device strings. This is confusing for things like xfstests
  2. the mount helper can fill in the mon addrs automatically, which is good, but that means that the device shown in /proc/mounts is different from what was mounted
  3. if mon addrs change, then that won't be reflected in the device string

Change this to a new device string format. Possibly something like this:

<name>@<fs_name>[.<ceph_fsid>]:/path

Note that there is no place there for mon addrs. Those would have to move to a new (mandatory) mount option, which would also make it cleaner for remounts after mon addrs have changed.

This will require work in both the kernel and userland mount helper. The difficult part here will be dealing with old kernel + new userland or vice versa. The kernel will need to be able to accept both syntax variants, and the userland mount helper will most likely need to be able to try the new syntax and fall back to the old if it's not recognized.


Related issues 1 (0 open1 closed)

Related to CephFS - Bug #47276: MDSMonitor: add command to rename file systemsResolvedRamana Raja

Actions
Actions

Also available in: Atom PDF