Skip to main content

resources_inode_capacity

Function resources_inode_capacity 

Source
pub fn resources_inode_capacity(path: &Path) -> Result<Option<InodeCapacity>>
Expand description

Probe inode capacity for the filesystem containing path.

Inode exhaustion matters here in a way it does not on Windows: a filesystem with a fixed inode table (ext4 most prominently) can fail writes with ENOSPC while plenty of bytes remain free. A filesystem that reports an empty table – btrfs, and others that allocate inodes dynamically – has nothing to run out of, and is reported as not applicable rather than as zero of zero.