Hi,

in order to perform sysupgrade on a system having it's rootfs on UBI in the
same way we are using sysupgrade now, we will need a "force" option in
ubidetach (as lazy-umount of /rom during sysupgrade won't reduce the refcount,
thus makes detaching and subsequent ubiformat impossible).
Several questions come up at that point:
a) in the long-run, should we use mtd-utils or the busybox ubi* applets on UBI
systems?

b) ubi_detach_mtd already supports a boolean parameter 'anyway' which allows
detaching with refcount!=0 . All needed is therefore exposing this option on
the control-device, so userspace can use it.
Should that be done by:
 - extending the passing of parameters in such way that it can pass a flag 
'force'
 - using a separate IOCTL for UBI_IOCDET_FORCE

Looking forward to hear everybody's opinion on that :)


Cheers


Daniel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to