Skip to main content

Crate smb_server_backend_posix

Crate smb_server_backend_posix 

Source
Expand description

Default storage backend mapping the [Vfs] interface onto POSIX file semantics.

The data path (open / read / write / fsync) and mutating directory ops (mkdir / rmdir / rename / unlink) run on io_uring via tokio_uring::fs — non-blocking, zero-copy, completion-based. Read-only metadata and directory enumeration use std::fs because Linux has no async / io_uring getdents op; those are page-cache-backed syscalls that complete in microseconds.

All client paths are resolved inside the configured share root; .. traversal and absolute components are refused and existing entries are matched case-insensitively to emulate Windows semantics.

Structs§

PosixInner
Backend-private state attached to every open handle.
PosixVfs
POSIX backend rooted at a single directory.

Functions§

wildcard_match
DOS wildcard match supporting * and ? (case-insensitive callers).