Crate ext2

source ·
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. If path 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 given key and value.