[Ubifs] Reboot -> "recovery needed"?
Artem Bityutskiy
dedekind1 at gmail.com
Tue Jun 28 08:14:27 EDT 2011
On Tue, 2011-06-28 at 13:50 +0200, Gilles wrote:
> On Tue, 28 Jun 2011 14:38:04 +0300, Artem Bityutskiy
> <dedekind1 at gmail.com> wrote:
> >I think it is not that simple - if there is any file open for writing -
> >remount will fail with EBUSY. So you'd first need to shut down apps,
> >then do that. You should probably refer standard boot scripts to see
> >what they do.
> >
> >On the other hand, as long as your reboot command runs sync, it is
> >harmless to not unmount UBIFS.
>
> It looks like it does:
>
> There a several files returned when searching with "reboot*", but it
> looks like /usr/src/uClinux-dist-2010R1-RC5/user/sysutils/reboot.c is
> the one:
>
> http://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=%2Ftrunk%2Fuser%2Fsysutils%2Freboot.c&view=markup
Then you do not have to worry about UBIFS recovery - it will be quick
and will do almost nothing - just check that everything is all-right and
mark the master node as clean.
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list