Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.16.0
-
3
-
9223372036854775807
Description
On MDT side, the S_ENCRYPTED flag is set when setting the encryption context, because internally, ldiskfs sets the LDISKFS_ENCRYPT_FL flag on the on-disk inode when the encryption.c xattr is being set (along with the LUSTRE_ENCRYPT_FL flag in the LMA).
On OST side, the LUSTRE_ENCRYPT_FL flag in the LMA is also set. But this does not lead to the LDISKFS_ENCRYPT_FL flag being set on the on-disk inode.
So we would need to improve OSD layer’s behavior. By adding a dumb encryption context on OST objects when the LUSTRE_ENCRYPT_FL flag gets set in the LMA, ldiskfs would internally set the LDISKFS_ENCRYPT_FL flag on the on-disk inode.
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50657/
Subject:
LU-16091enc: S_ENCRYPTED flag on OST objects for enc filesProject: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 1505ae3211ac86b9a621c738d1bcb9782f409d56