Expand description
This crate provides a logic for creating an ext2 filesystem on memory.
ModulesΒ§
- arena πDefines an arena allocator backed by
base::MemoryMapping
. - bitmap πDefines bitmap types.
- blockgroup πDefines structs for metadata of block groups.
- builder πProvides structs and logic to build ext2 file system with configurations.
- fs πDefines a struct to represent an ext2 filesystem and implements methods to create
- inode πDefines the inode structure.
- superblock πDefines the superblock structure.
- xattr πProvides utilites for extended attributes.
StructsΒ§
- A struct to represent the configuration of an ext2 filesystem.
ConstantsΒ§
- The size of a block in bytes. We only support 4K-byte blocks.
FunctionsΒ§
- Retrieves the list of pairs of a name and a value of the extended attribute of the given
path
. Ifpath
is a symbolic link, it wonβt be followed and the value of the symlink itself is returned. The return values are byte arrays WITHOUT trailing NULL byte. - Sets the extended attribute of the given
path
with the givenkey
andvalue
.