Skip to main content

device_scan

Function device_scan 

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

Register a block device with the kernel’s btrfs device scanner so that multi-device filesystems containing it can be mounted.

Opens /dev/btrfs-control and issues BTRFS_IOC_SCAN_DEV. path must be the path to a block device that contains a btrfs filesystem member.