From 10a7a1b8babbdd5684684da31482eab1931316f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Tue, 6 Sep 2016 04:36:45 +0200 Subject: ext4: Avoid corruption of directories with hash tree indexes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Lukasz Majewski --- include/ext4fs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ext4fs.h b/include/ext4fs.h index e3f6216fa91..6e31c738123 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -28,6 +28,7 @@ #define __EXT4__ #include +#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 -- cgit v1.2.3