]> git-server-git.apps.pok.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>
Mon, 18 Apr 2022 13:59:57 +0000 (14:59 +0100)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:50:02 +0000 (11:50 -0400)
commitff64f157989acdfdd0d646c46a4939e4f480558c
treeca2ced09978fffa8c4db5999c6ac0b4ce8da7fa5
parent0e2a375eaa39a62c759ad238b16b72b6694e1399
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