ceph: prevent snapshot creation in encrypted locked directories
authorLuís Henriques <lhenriques@suse.de>
Thu, 25 Aug 2022 13:31:31 +0000 (09:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:36 +0000 (11:24 +0200)
commitabd4fc775857cda97cde08d500a60b00617b8168
treecdd5f46027892a263f62ae2e788365403fe3b5dc
parentdd66df0053ef84add5e684df517aa9b498342381
ceph: prevent snapshot creation 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: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/dir.c