diff options
author | Richard Weinberger <richard@nod.at> | 2016-09-19 22:05:18 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2016-12-12 23:07:38 +0100 |
commit | 6a5e98ab7d8665d2faddbd91a8a2bf9addb79aff (patch) | |
tree | f59cb765b62f2b3eea155a327496d09485fe1b6d /fs/ubifs | |
parent | ade46c3a6029dea49dbc6c7734b0f6a78d3f104c (diff) | |
download | linux-6a5e98ab7d8665d2faddbd91a8a2bf9addb79aff.tar.gz linux-6a5e98ab7d8665d2faddbd91a8a2bf9addb79aff.tar.bz2 linux-6a5e98ab7d8665d2faddbd91a8a2bf9addb79aff.zip |
ubifs: Define UBIFS crypto context xattr
Like ext4 UBIFS will store the crypto context in a xattr
attribute.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/ubifs-media.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs-media.h b/fs/ubifs/ubifs-media.h index e24380cf46ed..d47e9569b3de 100644 --- a/fs/ubifs/ubifs-media.h +++ b/fs/ubifs/ubifs-media.h @@ -301,6 +301,13 @@ enum { #define UBIFS_MAX_NODE_SZ UBIFS_MAX_INO_NODE_SZ /* + * xattr name of UBIFS encryption context, we don't use a prefix + * nor a long name to not waste space on the flash. + */ +#define UBIFS_XATTR_NAME_ENCRYPTION_CONTEXT "c" + + +/* * On-flash inode flags. * * UBIFS_COMPR_FL: use compression for this inode |