RFC : attach ubi in readonly mode

Marek Vasut marex at denx.de
Wed Oct 3 20:18:25 EDT 2012


Dear Matthieu CASTET,

> Hi,
> 
> it could be interesting to attach ubi in read-only mode (for example
> getting ubi volume info without altering flash).
> 
> A solution to do that could be to add an argument to UBI_IOCATT ioctl.
> 
> Another solution should be to have a way to switch MTD_WRITEABLE flags.
> 
> What do you think a that ?
> 
> 
> PS : attached a proof of concept for solution 1

Did you get any further with this patches? Is it now possible to safely mount 
UBIFS in read-only mode in some way please?

Thanks!

Best regards,
Marek Vasut



More information about the linux-mtd mailing list