From: Paolo 'Blaisorblade' Giarrusso Date: Sun, 1 May 2005 15:58:57 +0000 (-0700) Subject: [PATCH] uml ubd: handle readonly status X-Git-Tag: v2.6.12-rc4~136^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c49be99ede1e3685a9817a564b4b1678d48e1b9;p=pandora-kernel.git [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 CC: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed