From: Artem Bityutskiy <dedekind1@gmail.com>
To: Jon Ringle <jon@ringle.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: detecting that ubifs switched to ro after problem
Date: Wed, 16 Jun 2010 09:44:06 +0300 [thread overview]
Message-ID: <1276670646.19028.283.camel@localhost> (raw)
In-Reply-To: <AANLkTikt_Y_DPNZP7jKvBrHgD230po4lqJWBE5vRVl20@mail.gmail.com>
On Mon, 2010-06-14 at 11:15 -0400, Jon Ringle wrote:
> On Sun, Jun 13, 2010 at 5:47 AM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> > On Fri, 2010-06-11 at 22:46 -0400, Jon Ringle wrote:
> >> Hi,
> >>
> >> I'd like to be able to somehow detect that ubifs has taken the action
> >> of switching from rw to ro due to some error detected in the ubifs
> >> filesystem. If I can detect this then maybe I can do something about
> >> it, such as copying the ubifs contents to a .tar.bz2 in /tmp,
> >> mkfs.ubifs, and restore .tar.bz2 back again.
> >>
> >> Is there a way I can do this?
> >
> > I think with 2fde99cb55fb9d9b88180512a5e8a5d939d27fec you can check for
> > R/O state from /proc/mounts. Also, you can use something like inotify to
> > watch /proc/mounts changes and react if UBIFS became r/o.
>
> Any possibility of having that merged into
> git://git.infradead.org/~dedekind/ubifs-v2.6.32.git?
It is there since 2010-05-23, you just need to use "git pull" from time
to time :-)
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
prev parent reply other threads:[~2010-06-16 6:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-12 2:46 detecting that ubifs switched to ro after problem Jon Ringle
2010-06-13 9:47 ` Artem Bityutskiy
2010-06-13 10:07 ` Artem Bityutskiy
2010-06-14 15:15 ` Jon Ringle
2010-06-16 6:44 ` Artem Bityutskiy [this message]
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=1276670646.19028.283.camel@localhost \
--to=dedekind1@gmail.com \
--cc=jon@ringle.org \
--cc=linux-mtd@lists.infradead.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 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).