All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Hutchinson <b.hutchman@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: udev auto-mount not doing fsck
Date: Thu, 10 Apr 2014 14:00:19 -0400	[thread overview]
Message-ID: <CAFZh4h_HaC=rRfgZ_8ibN2XrQdah2y1VWwpj6nqaGVd-_mfuCg@mail.gmail.com> (raw)
In-Reply-To: <20140410165626.GQ3370@denix.org>

On Thu, Apr 10, 2014 at 12:56 PM, Denys Dmytriyenko <denis@denix.org> wrote:

> Brian,
>
> Be careful, with your eUSB storage device cold-plugged (available on boot)
> you may run into a race condition, if you initially mount your rootfs in
> read-only mode and then re-mount in read-write mode during boot. One of the
> proposed solutions:
>
> http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/50124
>
> --
> Denys
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>

At the moment the rootfs is rw in NOR.  In the future I plan for it to be
squashfs (ro) with a union overlay that is rw ubifs for persistent stuff.
This is to help protect the rootfs from getting corrupted or accidentally
hosed up during an update etc.

So I could see where the race condition you mentioned could happen maybe in
that case but I'm not quite following (yet) how it could happen currently
in rw mode.  I guess you're saying there is a point where the rootfs could
be ro and so the udev rule has no mount point to hang the eUSB on ... If
I'm picking up what you're laying down ('if' being the key word :) )

This eUSB is intended to stay on the board at all times and not be hot
plugged ... but it is socketed (but board is buried in an enclosure) so it
could be replaced if needed by a technician.

I'll study that patch you mentioned more when I get some time (in SCRUM
meeting at the time ... joy).

Regards,

Brian


  reply	other threads:[~2014-04-10 18:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-09 20:53 udev auto-mount not doing fsck Brian Hutchinson
2014-04-10 13:10 ` Brian Hutchinson
2014-04-10 14:48   ` Koen Kooi
2014-04-10 15:12     ` Brian Hutchinson
2014-04-10 16:56       ` Denys Dmytriyenko
2014-04-10 18:00         ` Brian Hutchinson [this message]
2014-04-10 21:47           ` Brian Hutchinson
2014-04-10 22:22             ` Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFZh4h_HaC=rRfgZ_8ibN2XrQdah2y1VWwpj6nqaGVd-_mfuCg@mail.gmail.com' \
    --to=b.hutchman@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.