Skip to main content

ubi_volcrblk

Function ubi_volcrblk 

pub fn ubi_volcrblk<Fd: AsFd>(
    fd: Fd,
    req: &UbiBlkcreateReq,
) -> Result<(), Errno>
Expand description

UBI_IOCVOLCRBLK: creates a read-only block device on 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 with a block device returns EEXIST.