From baff0cd5bdde8523230434f506cb4926966a99cb Mon Sep 17 00:00:00 2001 From: Mark Poliakov Date: Sat, 28 Dec 2024 14:33:22 +0200 Subject: [PATCH] ext2: add all required/readonly features --- kernel/driver/fs/ext2/src/data.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/kernel/driver/fs/ext2/src/data.rs b/kernel/driver/fs/ext2/src/data.rs index 621f308e..7aa8fc46 100644 --- a/kernel/driver/fs/ext2/src/data.rs +++ b/kernel/driver/fs/ext2/src/data.rs @@ -32,6 +32,18 @@ bitflags! { pub struct FsRequiredFeatures: u32 { const COMPRESSION: bit 0; const DIRENT_TYPE_FIELD: bit 1; + const NEED_RECOVERY: bit 2; + const SEPARATE_JOURNAL_DEV: bit 3; + const META_BG: bit 4; + const EXTENTS: bit 6; + const FS_64_BIT: bit 7; + const FLEX_BG: bit 9; + const EA_INODE: bit 10; + const DIRDATA: bit 12; + const CHECKSUM_SEED: bit 13; + const LARGEDIR: bit 14; + const INLINE_DATA: bit 15; + const ENCRYPT: bit 16; } } @@ -41,6 +53,17 @@ bitflags! { const SPARSE_SUPERBLOCKS: bit 0; const FILE_SIZE_64_BIT: bit 1; const DIR_BTREE: bit 2; + const SIZE_BLOCKS_NOT_BYTES: bit 3; + const DESCRIPTOR_CHECKSUM: bit 4; + const NO_HARD_LINK_LIMIT: bit 5; + const LARGE_INODES: bit 6; + const HAS_SNAPSHOT: bit 7; + const QUOTA: bit 8; + const CLUSTER_EXTENT_ALLOC: bit 9; + const METADATA_CHECKSUM: bit 10; + const REPLICA: bit 11; + const READ_ONLY: bit 12; + const PROJECT_QUOTA: bit 13; } }