Skip to main content

Module fs

Module fs 

Source
Expand description

Owned filesystem requests delegated to the bounded native pool.

Cancelling a caller cannot undo native I/O already in progress. Writes may have committed when cancellation is observed; these helpers are not transactions.

Functionsยง

metadata
Reads filesystem metadata on a worker.
read
Reads at most limit bytes, returning an error if the file is larger. Storage grows only for bytes actually read, with fallible reservations bounded by limit. A fixed 8 KiB scratch buffer detects overflow without allocating the limit.
write
Writes owned bytes on a worker. Cancellation does not roll back side effects.