mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
Kernel/Ext2: Write superblock backups
We don't ever read them out, but this should make fsck a lot less mad.
This commit is contained in:
parent
cc1cb72fb5
commit
a0705202ea
4 changed files with 54 additions and 2 deletions
|
@ -22,10 +22,13 @@ class Ext2FS final : public BlockBasedFileSystem {
|
|||
friend class Ext2FSInode;
|
||||
|
||||
public:
|
||||
// s_feature_ro_compat
|
||||
enum class FeaturesReadOnly : u32 {
|
||||
None = 0,
|
||||
FileSize64bits = 1 << 1,
|
||||
SparseSuperblock = EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER,
|
||||
FileSize64bits = EXT2_FEATURE_RO_COMPAT_LARGE_FILE,
|
||||
};
|
||||
AK_ENUM_BITWISE_FRIEND_OPERATORS(FeaturesReadOnly);
|
||||
|
||||
static ErrorOr<NonnullRefPtr<FileSystem>> try_create(OpenFileDescription&, ReadonlyBytes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue