diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-21 20:03:40 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-21 20:06:16 -0700 |
commit | 6e6c7132400b5a0c2f55b85feb64a464f2a6fb78 (patch) | |
tree | 1c9d054725d34ab575e88ebf4f19724b0a3e4a13 /include | |
parent | 65950fc736713f259a56bb670492588c6c214523 (diff) | |
download | f2fs-tools-6e6c7132400b5a0c2f55b85feb64a464f2a6fb78.tar.gz |
mkfs.f2fs: set encryption feature
This patch add to support encryption feature.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/f2fs_fs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index d23ae1b..6aefa5d 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -251,6 +251,7 @@ struct f2fs_configuration { int fix_on; int bug_on; int auto_fix; + __le32 feature; /* defined features */ } __attribute__((packed)); #ifdef CONFIG_64BIT @@ -315,6 +316,8 @@ enum { #define MAX_ACTIVE_NODE_LOGS 8 #define MAX_ACTIVE_DATA_LOGS 8 +#define F2FS_FEATURE_ENCRYPT 0x0001 + /* * For superblock */ @@ -353,6 +356,10 @@ struct f2fs_super_block { __le32 cp_payload; __u8 version[VERSION_LEN]; /* the kernel version */ __u8 init_version[VERSION_LEN]; /* the initial kernel version */ + __le32 feature; /* defined features */ + __u8 encryption_level; /* versioning level for encryption */ + __u8 encrypt_pw_salt[16]; /* Salt used for string2key algorithm */ + __u8 reserved[871]; /* valid reserved region */ } __attribute__((packed)); /* |