Re: Writes to mounted devices containing file-systems.

H. Peter Anvin
2001-08-11T19:17:02Z

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>