Skip to main content

list_dev_by_dir_optional

Function list_dev_by_dir_optional 

Source
pub fn list_dev_by_dir_optional(dir: &Dir) -> Result<Option<Device>>
Expand description

List the device containing the filesystem mounted at the given directory, or None if that filesystem is not backed by a block device (such as virtiofs, NFS, tmpfs or overlayfs).

As with list_dev_by_dir, dir must be the root of a mount.