]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/mds: allow passing fs names and path in same cap
authorRishabh Dave <ridave@redhat.com>
Tue, 17 Mar 2020 12:39:47 +0000 (18:09 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 10 Sep 2020 11:40:51 +0000 (17:10 +0530)
commitf93c4c7188245567ace3f18ec2972c9683f0d970
treea03b9bf5425053b9776f787970f6c2d423c03a37
parent91d5715be6996629fb912a7dd1e52b754dd6e7fd
src/mds: allow passing fs names and path in same cap

Allow passing path along with fs names and capspec while creating an MDS
cap. The new syntax looks as follows -

allow rw fsname=<fsname> path=<path>

To provide caps for multiple file systems, pass the same phrase multiple
times separated by commas -

allow rw fsname=<fsname1> path=<path1>, allow rw fsname=<fsname2>
path=<path2>, ...

This commit also makes sure that the old syntax 'allow rw path=<path>'
is supported for backwards compatibility. The old syntax would imply
'allow rw fsname=* path=<path>' and would grant read-write permission for
all FSs containing the path <path>.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
PendingReleaseNotes
src/mds/MDSAuthCaps.cc
src/mds/mdstypes.h
src/mon/AuthMonitor.cc