Skip to main content

ubi_ebmap

Function ubi_ebmap 

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

UBI_IOCEBMAP: maps an unmapped logical eraseblock of the volume of the file, /dev/ubi<n>_<m>, to an erased physical eraseblock.

Added in Linux 2.6.29.

ยงErrors

Returns the error of the ioctl. A mapped logical eraseblock returns EBADMSG, a static volume or a read-only file returns EROFS, and a volume that is being updated returns EBADF.