ceph: support legacy v1 encryption policy keysetup
PATCH 1/1 ceph: support legacy v1 encryption policy keysetup
fstests make use of legacy keysetup where the key description uses a filesystem-specific prefix. Add this ceph-specific prefix to the fscrypt_operations data structure.
Signed-off-by Luís Henriques <[email protected]>
--- fs/ceph/crypto.c | 1 + 1 file changed, 1 insertion(+)
fs/ceph/crypto.c +1 -0
@@ -77,6 +77,7 @@ static const union fscrypt_policy *ceph_get_dummy_policy(struct super_block *sb) }static struct fscrypt_operations ceph_fscrypt_ops = { + .key_prefix ="ceph:" , .get_context = ceph_crypt_get_context, .set_context = ceph_crypt_set_context, .get_dummy_policy = ceph_get_dummy_policy,
Quoted 14 lines · Luís Henriques
fstests make use of legacy keysetup where the key description uses a filesystem-specific prefix. Add this ceph-specific prefix to the
fscrypt_operationsdata structure.Signed-off-by Luís Henriques <[email protected]>--- fs/ceph/crypto.c | 1 + 1 file changed, 1 insertion(+)fs/ceph/crypto.c +0
-0
fs/ceph/crypto.c static const union fscrypt_policy *ceph_get_dummy_policy(struct super_block *sb) · line 83
Quoted 7 lines
fs/ceph/crypto.c +1
-0@@ -77,6 +77,7 @@ static const union fscrypt_policy *ceph_get_dummy_policy(struct super_block *sb) }static struct fscrypt_operations ceph_fscrypt_ops = { + .key_prefix ="ceph:" , .get_context = ceph_crypt_get_context, .set_context = ceph_crypt_set_context, .get_dummy_policy = ceph_get_dummy_policy,
Good catch, thanks! Merged into wip-fscrypt.
Signature · 1 line
Jeff Layton <[email protected]>