Skip to main content

Module operations

Module operations 

Source
Expand description

io_uring pipeline, reflink/CoW, sendfile, and copy tier selection. SmartCopier, io_uring pipeline, reflink/CoW.

Re-exports§

pub use napi::register_napi_with_ring;
pub use napi::unregister_napi_from_ring;
pub use napi::try_register_napi;
pub use napi::DEFAULT_NAPI_BUSY_POLL_TO_US;
pub use capabilities::*;
pub use container::*;

Modules§

capabilities
Filesystem capability probing and copy tier selection. probe_capabilities(), copy tier selection, CopyCapabilities.
container
Container and device-mapper storage stack detection. Container/device-mapper detection functions.
napi
io_uring NAPI busy-poll registration for NFS-target rings. io_uring NAPI busy-poll registration for NFS-target rings.
simd
SIMD zero-block detection (AVX-512, AVX2, NEON, scalar fallback). SIMD zero-block detection (AVX-512, AVX2, NEON, fallback).

Structs§

CopyStats
Statistics collected during a copy operation
FsyncLatencyTracker
Tracks fsync latency with exponential moving average for adaptive timeout calculation
SmartCopier
Async copy engine backed by io_uring with auto-adaptive tier selection

Traits§

OptimizedFs
Trait for filesystem operations that auto-select the optimal I/O path

Functions§

apply_lock
Apply or release a flock on a file, tracking the lock handle by inode in lock_map
btrfs_resolve_inode
Resolve a btrfs inode number to its filesystem path via BTRFS_IOC_INO_LOOKUP
reflink_or_copy
Copy src to dst using reflink (FICLONE) if supported, falling back to sendfile and finally a read+write loop. Returns bytes copied.