feat(ext4): seek, rmdir (e2fsck-clean)

This commit is contained in:
2026-10-27 23:53:13 +01:00
parent 24b0734c73
commit eb9e3efaac
4 changed files with 93 additions and 0 deletions

View File

@@ -74,6 +74,10 @@ pub trait FileSystem {
fn delete(&mut self, path: &[u8]) -> bool;
fn file_size(&mut self, handle: FileHandle) -> Option<usize>;
fn mkdir(&mut self, path: &[u8]) -> bool;
/// Moves `handle`'s position to `offset` (at most the file's size).
fn seek(&mut self, handle: FileHandle, offset: usize) -> bool;
/// Removes the directory at `path`, which must be empty.
fn rmdir(&mut self, path: &[u8]) -> bool;
/// Whether anything can be written at all; the server refuses
/// writing requests up front when not.
fn writable(&self) -> bool {