]> git.apps.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)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:49:58 +0000 (11:49 -0400)
commit4139c0e478169c20be8ef9756ca6b2e51d5d56ef
tree004aa2aa5106b3c13ee468e74b03273d6bffc125
parent942b438c7399950a72082f58dddb09ec43a49734
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