summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-12-29 15:51:52 +0000
committerpfg <pfg@FreeBSD.org>2015-12-29 15:51:52 +0000
commitea76029f56526019672478f21226f338ca89108d (patch)
treeb76d9cfc7c82bd28f7d3411c15539aa7cc6b6e7c /sys/fs
parentfce312af17e2815e76a073c49e9a1c14bdcbb672 (diff)
downloadFreeBSD-src-ea76029f56526019672478f21226f338ca89108d.zip
FreeBSD-src-ea76029f56526019672478f21226f338ca89108d.tar.gz
ext2: recognize ext4 INCOMPAT_RECOVER flag
This is a flag specific for journalling in ext4. Add it to the list of ext4 features we ignore for read-only purposes. PR: 205668 MFC after: 1 week
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/ext2fs/ext2fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h
index ec19300..756803f 100644
--- a/sys/fs/ext2fs/ext2fs.h
+++ b/sys/fs/ext2fs/ext2fs.h
@@ -187,6 +187,7 @@ struct csum {
#define EXT2F_INCOMPAT_COMP 0x0001
#define EXT2F_INCOMPAT_FTYPE 0x0002
+#define EXT2F_INCOMPAT_RECOVER 0x0004
#define EXT2F_INCOMPAT_META_BG 0x0010
#define EXT2F_INCOMPAT_EXTENTS 0x0040
#define EXT2F_INCOMPAT_64BIT 0x0080
@@ -208,6 +209,7 @@ struct csum {
*
* We do not support these EXT4 features but they are irrelevant
* for read-only support:
+ * - EXT2F_INCOMPAT_RECOVER
* - EXT2F_INCOMPAT_FLEX_BG
* - EXT2F_INCOMPAT_META_BG
*/
@@ -216,6 +218,7 @@ struct csum {
EXT2F_ROCOMPAT_EXTRA_ISIZE)
#define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE
#define EXT4F_RO_INCOMPAT_SUPP (EXT2F_INCOMPAT_EXTENTS | \
+ EXT2F_INCOMPAT_RECOVER | \
EXT2F_INCOMPAT_FLEX_BG | \
EXT2F_INCOMPAT_META_BG )
OpenPOWER on IntegriCloud