OpenCloudOS-Kernel/arch/um/drivers
Paolo 'Blaisorblade' Giarrusso 2c49be99ed [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>
2005-05-01 08:58:57 -07:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
chan_kern.c [PATCH] uml: redo console locking 2005-05-01 08:58:56 -07:00
chan_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cow.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cow_sys.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cow_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daemon.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daemon_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daemon_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fd.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
harddog_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
harddog_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hostaudio_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
line.c [PATCH] uml: redo console locking 2005-05-01 08:58:56 -07:00
mcast.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcast_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcast_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mconsole_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mconsole_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmapper_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
net_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
net_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
null.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcap_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcap_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcap_user.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
port.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
port_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
port_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
random.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slip.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slip_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slip_proto.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slip_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slirp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slirp_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
slirp_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ssl.c [PATCH] uml: redo console locking 2005-05-01 08:58:56 -07:00
ssl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stderr_console.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stdio_console.c [PATCH] uml: redo console locking 2005-05-01 08:58:56 -07:00
stdio_console.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ubd_kern.c [PATCH] uml ubd: handle readonly status 2005-05-01 08:58:57 -07:00
ubd_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xterm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xterm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xterm_kern.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00