Skip to main content

is_memory_backed

Function is_memory_backed 

Source
pub(in pool::file) fn is_memory_backed(
    path: &Path,
) -> Result<bool>
Available on Linux and Unix and crate feature pool only.
Expand description

Whether path is on tmpfs or ramfs.

NOTE: this checks the filesystem type of path alone. An overlay whose upper layer is tmpfs reports the overlay type and passes.