Function ubi_setvolprop
pub fn ubi_setvolprop<Fd: AsFd>(
fd: Fd,
req: &UbiSetVolPropReq,
) -> Result<(), Errno>Expand description
UBI_IOCSETVOLPROP: sets a property of the volume of the file,
/dev/ubi<n>_<m>.
The kernel keeps the property in memory until the device is detached. It doesn’t need a capability and works on a read-only file. Added in Linux 2.6.29.
§Errors
Returns the error of the ioctl. An unknown property returns EINVAL.