Crate srfs

Source
Expand description

Simple Rust File System

A simple filesystem impremented in Rust.

This crate is a work-in-progress. It contains synchronous high-level API, similar to std::fs::* in Rust, and uses crate srfs-core internally. For use with [std].

All basic filesystem features are implemented (see struct FileSystem), with provisions for extensions.

At the moment only synchronous interface is provided.

TODO:

  • crash recovery
  • timestamps
  • async API

Contributions are welcome.

Structs§

Attr
DirEntry
File
FileSystem
Permissions
ReadDir

Enums§

EntryKind
FsError

Constants§

BLOCK_SIZE
MAX_DIR_ENTRIES
MAX_FILE_SIZE
PARTITION_ID
See https://en.wikipedia.org/wiki/Partition_type. We use an arbitrary unused number here.

Traits§

SyncBlockDevice
Synchronous Block Device.