diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-05-01 17:58:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 17:58:57 +0200 |
commit | 2c49be99ede1e3685a9817a564b4b1678d48e1b9 (patch) | |
tree | d5e0b59f25351e4bfd80fc656e8f872c83c5f885 /arch/s390/defconfig | |
parent | [PATCH] uml: commentary about forking flag (diff) | |
download | linux-2c49be99ede1e3685a9817a564b4b1678d48e1b9.tar.xz linux-2c49be99ede1e3685a9817a564b4b1678d48e1b9.zip |
[PATCH] uml ubd: handle readonly status
Use the set_disk_ro() API when the backing file is read-only, to mark the disk
read-only, during the ->open(). The current hack does not work when doing a
mount -o remount.
Also, mark explicitly the code paths which should no more be triggerable (I've
removed the WARN_ON(1) things). They should actually become BUG()s probably
but I'll avoid that since I'm not so sure the change works so well. I gave it
only some limited testing.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
CC: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/s390/defconfig')
0 files changed, 0 insertions, 0 deletions