summaryrefslogtreecommitdiff
path: root/include/ext4fs.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-07-22 21:59:11 (GMT)
committerTom Rini <trini@konsulko.com>2016-08-05 11:27:14 (GMT)
commit6f94ab6656ceffb3f2a972c8de4c554502b6f2b7 (patch)
treee35a5d7a3e6d8d8bb76868aa6f6159d3050a96ff /include/ext4fs.h
parenta78cd8613204188991c192b8dae2de0aae3b1722 (diff)
downloadu-boot-6f94ab6656ceffb3f2a972c8de4c554502b6f2b7.tar.xz
ext4: Refuse to mount filesystems with 64bit feature set
With e2fsprogs after 1.43 the 64bit and metadata_csum features are enabled by default. The metadata_csum feature changes how ext4_group_desc->bg_checksum is calculated, which would break write support. The 64bit feature however introduces changes such that it cannot be read by implementations that do not support it. Since we do not support this, we must not mount it. Cc: Stephen Warren <swarren@nvidia.com> Cc: Simon Glass <sjg@chromium.org> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Stefan Roese <sr@denx.de> Reported-by: Andrew Bradford <andrew.bradford@kodakalaris.com> Signed-off-by: Tom Rini <trini@konsulko.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 cc765ae..13d2c56 100644
--- a/include/ext4fs.h
+++ b/include/ext4fs.h
@@ -32,6 +32,7 @@
#define EXT4_EXT_MAGIC 0xf30a
#define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010
#define EXT4_FEATURE_INCOMPAT_EXTENTS 0x0040
+#define EXT4_FEATURE_INCOMPAT_64BIT 0x0080
#define EXT4_INDIRECT_BLOCKS 12
#define EXT4_BG_INODE_UNINIT 0x0001