Skip to content

Commit 6a5e98a

Browse files
ubifs: Define UBIFS crypto context xattr
Like ext4 UBIFS will store the crypto context in a xattr attribute. Signed-off-by: Richard Weinberger <[email protected]>
1 parent ade46c3 commit 6a5e98a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/ubifs/ubifs-media.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ enum {
300300
/* The largest UBIFS node */
301301
#define UBIFS_MAX_NODE_SZ UBIFS_MAX_INO_NODE_SZ
302302

303+
/*
304+
* xattr name of UBIFS encryption context, we don't use a prefix
305+
* nor a long name to not waste space on the flash.
306+
*/
307+
#define UBIFS_XATTR_NAME_ENCRYPTION_CONTEXT "c"
308+
309+
303310
/*
304311
* On-flash inode flags.
305312
*

0 commit comments

Comments
 (0)