浏览代码

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>
Richard Weinberger 9 年之前
父节点
当前提交
6a5e98ab7d
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      fs/ubifs/ubifs-media.h

+ 7 - 0
fs/ubifs/ubifs-media.h

@@ -300,6 +300,13 @@ enum {
 /* The largest UBIFS node */
 /* The largest UBIFS node */
 #define UBIFS_MAX_NODE_SZ UBIFS_MAX_INO_NODE_SZ
 #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.
  * On-flash inode flags.
  *
  *