Skip to main content

ubi_rnvol

Function ubi_rnvol 

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

UBI_IOCRNVOL: renames volumes of the UBI device of the file, /dev/ubi<n>, in one atomic step.

Open and mounted volumes can be renamed. Needs CAP_SYS_RESOURCE. Added in Linux 2.6.27.

ยงErrors

Returns the error of the ioctl. An open volume that the rename would replace returns EBUSY, and so does a volume that is being updated.