]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add fscrypt ioctls
authorJeff Layton <jlayton@kernel.org>
Tue, 28 Jul 2020 13:58:43 +0000 (09:58 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:50 +0000 (10:59 +0800)
commit5b9aab9ed5dafab374395adb62dc0dd409e58830
treebd496a1869b2df75d710c93a883d56fbc7fb76fc
parentd346ca0c69db319fbb1963b51c8fa0a19f385321
ceph: add fscrypt ioctls

We gate most of the ioctls on MDS feature support. The exception is the
key removal and status functions that we still want to work if the MDS's
were to (inexplicably) lose the feature.

For the set_policy ioctl, we take Fs caps to ensure that nothing can
create files in the directory while the ioctl is running. That should
be enough to ensure that the "empty_dir" check is reliable.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/ioctl.c