projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade46c3
)
ubifs: Define UBIFS crypto context xattr
author
Richard Weinberger
<richard@nod.at>
Mon, 19 Sep 2016 20:05:18 +0000
(22:05 +0200)
committer
Richard Weinberger
<richard@nod.at>
Mon, 12 Dec 2016 22:07:38 +0000
(23:07 +0100)
Like ext4 UBIFS will store the crypto context in a xattr
attribute.
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/ubifs-media.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/ubifs-media.h
b/fs/ubifs/ubifs-media.h
index e24380cf46ed4b0506dcc2f2e9258f04e4367a28..d47e9569b3de058550822bd4e9adfc274fb0955b 100644
(file)
--- 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.
*