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Β§
- Builder
- A struct to represent the configuration of an ext2 filesystem.
ConstantsΒ§
- BLOCK_
SIZE - The size of a block in bytes. We only support 4K-byte blocks.
FunctionsΒ§
- dump_
xattrs - Retrieves the list of pairs of a name and a value of the extended attribute of the given
path. Ifpathis 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. - set_
xattr - Sets the extended attribute of the given
pathwith the givenkeyandvalue.