Skip to main content

device_ready

Function device_ready 

Source
pub fn device_ready(path: &CStr) -> Result<()>
Expand description

Check whether all member devices of the filesystem that contains path are available and the filesystem is ready to mount.

Opens /dev/btrfs-control and issues BTRFS_IOC_DEVICES_READY. path must be the path to one of the block devices belonging to the filesystem. Returns Ok(()) when all devices are present; returns an error (typically ENOENT or ENXIO) if the set is incomplete.