Skip to main content

ubi_ebch

Function ubi_ebch 

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

UBI_IOCEBCH: starts an atomic change of a logical eraseblock of the volume of the file, /dev/ubi<n>_<m>.

Write req.bytes bytes to the file afterwards. The logical eraseblock keeps its old data until the last byte. Only UbiVolType::DYNAMIC volumes accept it. Added in Linux 2.6.25.

ยงErrors

Returns the error of the ioctl. A static volume or a read-only file returns EROFS.