Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-16091

Set S_ENCRYPTED flag on OST objects for encrypted files

    XMLWordPrintable

Details

    • 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.

      Attachments

        Issue Links

          Activity

            People

              sebastien Sebastien Buisson
              sebastien Sebastien Buisson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: