f2fs crypto: add encryption xattr support
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Apr 2015 23:43:31 +0000 (16:43 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:47 +0000 (15:41 -0700)
This patch add some definition for enrcyption xattr.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.h

index 969d792ca36229b6871aae29fb31406fab15ffe6..71a7100d5492e830125b32f560c5021bb6ada30a 100644 (file)
 #define F2FS_XATTR_INDEX_LUSTRE                        5
 #define F2FS_XATTR_INDEX_SECURITY              6
 #define F2FS_XATTR_INDEX_ADVISE                        7
+/* Should be same as EXT4_XATTR_INDEX_ENCRYPTION */
+#define F2FS_XATTR_INDEX_ENCRYPTION            9
+
+#define F2FS_XATTR_NAME_ENCRYPTION_CONTEXT     "c"
 
 struct f2fs_xattr_header {
        __le32  h_magic;        /* magic number for identification */