Re: document ext3 requirements

From: Rob Landley
Date: Sun Jan 04 2009 - 22:23:35 EST


On Sunday 04 January 2009 13:21:06 Geert Uytterhoeven wrote:
> I think most people get shocked when they discover that mounting something
> read-only may actualy write to the media. This is a bit unexpected (hey, if
> I mount `read-only', I expect that no writes will happen), as it behaved
> differently before the introduction of journalling.

Is this an unreasonable use case:

kill -STOP $(pidof qemu)
mount -o loop,ro hdb.img blah
cp blah/thingy thingy
umount blah
kill -CONT $(pidof qemu)

Currently, if your loopback mount is -t ext3 it'll write to the block device,
and if your mount is -t ext2 it'll refuse to work on an unclean ext3
filesystem, even if it's read only. (But it _will_ work on an unclean ext2
filesystem.)

My theory when I first found out about this was "the filesystem developers
hate me personally".

Rob
--
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/