Skip to main content

ubi_volrmblk

Function ubi_volrmblk 

pub fn ubi_volrmblk<Fd: AsFd>(fd: Fd) -> Result<(), Errno>
Expand description

UBI_IOCVOLRMBLK: removes the block device of the volume of the file, /dev/ubi<n>_<m>.

Added in Linux 3.15. Without CONFIG_MTD_UBI_BLOCK, the kernel returns ENOSYS.

ยงErrors

Returns the error of the ioctl. A volume without a block device returns ENODEV, and a block device that is open returns EBUSY.