linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* UBI_READWRITE constraint when opening volumes to rename
@ 2014-10-07 14:31 Andrew Murray
  2014-10-07 14:49 ` Ezequiel Garcia
  2014-10-09 10:25 ` Ezequiel Garcia
  0 siblings, 2 replies; 14+ messages in thread
From: Andrew Murray @ 2014-10-07 14:31 UTC (permalink / raw)
  To: linux-mtd; +Cc: ezequiel.garcia, dedekind1

Hello,

I'd like to be able to safely rename a UBI volume that contains a
mounted UBIFS volume.

This allows for firmware upgrade via the following steps:

- ubimkvol rootfs_new
- ubiupdatevol rootfs_new
- ubirename rootfs rootfs_old rootfs_new rootfs
- reboot
- ubirmvol rootfs_old

Such an approach makes upgrade of a root filesystem simple as there is
no need to unmount the root filesystem. I believe this question has
been asked before on this mailing list
(http://lists.infradead.org/pipermail/linux-mtd/2012-February/039743.html).

This process isn't possible at the moment as 'rename_volumes' opens
the UBI volume with UBI_READWRITE. Unfortunately UBIFS always opens
UBI with UBI_READWRITE regardless to if the user mounts as read-only.
If 'rename_volumes' is changed to UBI_READONLY then the above process
works.

I understand that this patch
https://patchwork.ozlabs.org/patch/339711/ recently changed the first
open restraint in 'rename_volumes' from UBI_EXCLUSIVE to
UBI_READWRITE. I'd like to understand if there are any risks in
changing it to UBI_READONLY?

Thanks,

Andrew Murray

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-06-25  9:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 14:31 UBI_READWRITE constraint when opening volumes to rename Andrew Murray
2014-10-07 14:49 ` Ezequiel Garcia
2014-10-09 10:25 ` Ezequiel Garcia
2014-10-09 11:03   ` Andrew Murray
2014-10-10 21:09     ` Richard Weinberger
2014-10-19 20:58       ` Andrew Murray
2014-10-20 11:10         ` Richard Weinberger
2014-10-20 11:40           ` Andrew Murray
2014-10-20 12:02           ` Artem Bityutskiy
2014-10-20 12:42             ` Richard Weinberger
2014-10-20 13:10               ` Artem Bityutskiy
2015-06-24 12:27               ` ir. Tjeerd Pinkert
2015-06-25  7:52                 ` Richard Weinberger
2015-06-25  9:28                   ` ir. Tjeerd Pinkert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).