summaryrefslogtreecommitdiff
path: root/include/ext4fs.h
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2016-09-06 04:36:45 +0200
committerTom Rini <trini@konsulko.com>2016-09-23 09:02:37 -0400
commit10a7a1b8babbdd5684684da31482eab1931316f0 (patch)
treedf0ba5bf0a6a92dde90ce37dd943149ecd172dfb /include/ext4fs.h
parenta321abd54fa025114df2002b33ea17adc6b998b7 (diff)
downloadu-boot-10a7a1b8babbdd5684684da31482eab1931316f0.tar.gz
u-boot-10a7a1b8babbdd5684684da31482eab1931316f0.tar.bz2
u-boot-10a7a1b8babbdd5684684da31482eab1931316f0.zip
ext4: Avoid corruption of directories with hash tree indexes
While directories can be read using the old linear scan method, adding a new file would require updating the index tree (alternatively, the whole tree could be removed). Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/ext4fs.h')
-rw-r--r--include/ext4fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h
index e3f6216fa9..6e31c73812 100644
--- a/include/ext4fs.h
+++ b/include/ext4fs.h
@@ -28,6 +28,7 @@
#define __EXT4__
#include <ext_common.h>
+#define EXT4_INDEX_FL 0x00001000 /* Inode uses hash tree index */
#define EXT4_EXTENTS_FL 0x00080000 /* Inode uses extents */
#define EXT4_EXT_MAGIC 0xf30a
#define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010