Function ubi_mkvol
pub fn ubi_mkvol<Fd: AsFd>(fd: Fd, req: &mut UbiMkvolReq) -> Result<(), Errno>Expand description
UBI_IOCMKVOL: creates a volume on the UBI device of the file,
/dev/ubi<n>.
On success, req.vol_id holds the ID of the new volume. Needs
CAP_SYS_RESOURCE.
ยงErrors
Returns the error of the ioctl. A volume ID or name that exists already
returns EEXIST, and a device without enough space returns ENOSPC.