]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: prevent snapshots to be created in encrypted locked directories
authorLuís Henriques <lhenriques@suse.de>
Thu, 25 Aug 2022 13:31:31 +0000 (09:31 -0400)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:58:58 +0000 (07:58 +0800)
commite2a5c43c886672800cf9b2c56c36ff2cfcffe57b
tree1e7062c4aef85f8dc04d9aeeae7ed30ddf2b08dd
parent2581e4ee8983f750b9d325d6e97660dc74e1f33f
ceph: prevent snapshots to be created in encrypted locked directories

With snapshot names encryption we can not allow snapshots to be created in
locked directories because the names wouldn't be encrypted.  This patch
forces the directory to be unlocked to allow a snapshot to be created.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/dir.c