From: Richard Weinberger Date: Mon, 19 Sep 2016 20:05:18 +0000 (+0200) Subject: ubifs: Define UBIFS crypto context xattr X-Git-Tag: v4.10-rc1~91^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a5e98ab7d8665d2faddbd91a8a2bf9addb79aff;p=thirdparty%2Fkernel%2Flinux.git ubifs: Define UBIFS crypto context xattr Like ext4 UBIFS will store the crypto context in a xattr attribute. Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/ubifs-media.h b/fs/ubifs/ubifs-media.h index e24380cf46ed4..d47e9569b3de0 100644 --- a/fs/ubifs/ubifs-media.h +++ b/fs/ubifs/ubifs-media.h @@ -300,6 +300,13 @@ enum { /* The largest UBIFS node */ #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. *