ceph: implement -o test_dummy_encryption mount option
authorJeff Layton <jlayton@kernel.org>
Tue, 8 Sep 2020 13:47:40 +0000 (09:47 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2023 07:01:48 +0000 (09:01 +0200)
commit6b5717bd30ab7f35792d20b71211055bdb43e6de
treec6463f5f7545dbe23fcd03b0ab497d5d5e27308b
parent2d332d5bc424404911540006a8bb450fbb96b178
ceph: implement -o test_dummy_encryption mount option

Add support for the test_dummy_encryption mount option. This allows us
to test the encrypted codepaths in ceph without having to manually set
keys, etc.

[ lhenriques: fix potential fsc->fsc_dummy_enc_policy memory leak in
  ceph_real_mount() ]

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/crypto.c
fs/ceph/crypto.h
fs/ceph/inode.c
fs/ceph/super.c
fs/ceph/super.h
fs/ceph/xattr.c