[PATCH] pktcdvd: Allow non-writable media to be mounted
authorPeter Osterlund <petero2@telia.com>
Tue, 14 Feb 2006 21:52:55 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Feb 2006 00:09:33 +0000 (16:09 -0800)
commit01fd9fda2ce462b44bafdac2fe6aacacf23531f2
treec587c37f36d3800fae2fbfd0007f983b646a4c6c
parent61a34937982cace51853b5dc88f86380e31998c0
[PATCH] pktcdvd: Allow non-writable media to be mounted

If opening for write fails, the open method should return -EROFS.  This makes
"mount" try again with a read-only mount, instead of just giving up.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/pktcdvd.c