]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: Add special syntax for cephfs
authorDouglas Fuller <dfuller@redhat.com>
Tue, 1 Aug 2017 20:32:38 +0000 (16:32 -0400)
committerDouglas Fuller <dfuller@redhat.com>
Wed, 2 Aug 2017 20:00:53 +0000 (16:00 -0400)
commit4b8256586497a96cc2fb720dca306db010ed5428
treeee08fcd5b6d10a38b91cdd667ccd8a383086c15e
parent5085dc1164b784f5c4666a850ee2988b4e006f71
mon/AuthMonitor: Add special syntax for cephfs

Add a new command, ceph auth fs, to generate and apply auth caps for
cephfs.

Syntax:

  ceph auth fs <fs_name> <entity_name> (<dir> <cap>)...

Notes:

  In this case, the AuthMonitor will determine the correct osd and
  mds cap syntax based on the data pools used by <fs_name>. The same
  caps will be applied to all data pools regardless of the filesystem
  configuration. If the write cap is enabled on any directory, the write
  cap for every data pool will be obtained.

  If different auth caps for this entity already exist, the result is
  -EINVAL.

Fixes: http://tracker.ceph.com/issues/20885
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
fixup
src/mon/AuthMonitor.cc
src/mon/MonCommands.h
src/mon/Monitor.cc