Re: Writes to mounted devices containing file-systems.

H. Peter Anvin (hpa@zytor.com)
11 Aug 2001 12:16:23 -0700


Followup to: <20010811144729.B31614@wyvern>
By author: Adrian Bridgett <adrian.bridgett@iname.com>
In newsgroup: linux.dev.kernel
>
> Personally I'd prefer AIX's approach - let the write through (if the user
> wants to shoot themselves in the foot...), but report an error about it (to
> syslog).
>

I don't see any point in having "you just fscked yourself" written to
the syslog. At the same time, writing to a mounted device is actually
useful: it's currently the only way to write the boot block on an
ext2 filesystem (and Viro: if you start using the page cache for the
superblock in ext2, you probably have to add an explicit interface to
write the boot block at the same time!!!)

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/