Re: read-only partitions: does the policy apply to all metadata ?

From: Pavel Machek
Date: Sun Mar 15 2009 - 17:18:00 EST


On Tue 2009-03-10 17:34:37, Alan Cox wrote:
> On Tue, 10 Mar 2009 13:22:39 -0400
> Valdis.Kletnieks@xxxxxx wrote:
>
> > On Tue, 10 Mar 2009 17:26:44 BST, porte64@xxxxxxx said:
> > > When a partition is mounted as read-only, does the kernel
> > > really prevent ANY byte to be written to it, including
> > > any metadata ?
> >
> > It's very hard to come up with a workable way to do a true read-only
> > mount of a journaled filesystem such as ext3 - what do you do if there's
> > anything in the journal that needs to be replayed?
>
> Replay it to a snapshot backed by the r/o fs ...

Or you can use 'ro, noload' to just ignore the journal. See the docs.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/