1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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
This commit is contained in:
Pedro F. Giffuni 2015-12-29 15:51:52 +00:00
parent 5df461fa7b
commit 26069aec57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292872

View File

@ -187,6 +187,7 @@ struct csum {
#define EXT2F_INCOMPAT_COMP 0x0001 #define EXT2F_INCOMPAT_COMP 0x0001
#define EXT2F_INCOMPAT_FTYPE 0x0002 #define EXT2F_INCOMPAT_FTYPE 0x0002
#define EXT2F_INCOMPAT_RECOVER 0x0004
#define EXT2F_INCOMPAT_META_BG 0x0010 #define EXT2F_INCOMPAT_META_BG 0x0010
#define EXT2F_INCOMPAT_EXTENTS 0x0040 #define EXT2F_INCOMPAT_EXTENTS 0x0040
#define EXT2F_INCOMPAT_64BIT 0x0080 #define EXT2F_INCOMPAT_64BIT 0x0080
@ -208,6 +209,7 @@ struct csum {
* *
* We do not support these EXT4 features but they are irrelevant * We do not support these EXT4 features but they are irrelevant
* for read-only support: * for read-only support:
* - EXT2F_INCOMPAT_RECOVER
* - EXT2F_INCOMPAT_FLEX_BG * - EXT2F_INCOMPAT_FLEX_BG
* - EXT2F_INCOMPAT_META_BG * - EXT2F_INCOMPAT_META_BG
*/ */
@ -216,6 +218,7 @@ struct csum {
EXT2F_ROCOMPAT_EXTRA_ISIZE) EXT2F_ROCOMPAT_EXTRA_ISIZE)
#define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE #define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE
#define EXT4F_RO_INCOMPAT_SUPP (EXT2F_INCOMPAT_EXTENTS | \ #define EXT4F_RO_INCOMPAT_SUPP (EXT2F_INCOMPAT_EXTENTS | \
EXT2F_INCOMPAT_RECOVER | \
EXT2F_INCOMPAT_FLEX_BG | \ EXT2F_INCOMPAT_FLEX_BG | \
EXT2F_INCOMPAT_META_BG ) EXT2F_INCOMPAT_META_BG )