]> git.hungrycats.org Git - linux/commit
[PATCH] fix cdrom mt rainier probe
authorPat LaVarre <p.lavarre@ieee.org>
Fri, 16 Jul 2004 04:17:27 +0000 (21:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 16 Jul 2004 04:17:27 +0000 (21:17 -0700)
commit8133b98db714f51ca800876f9684fe5c80f8db48
tree1b19b931a00caa909956b02f56b89818a2d167a7
parent3d3b3a5528a89360cefdde65df78f8d63b47463e
[PATCH] fix cdrom mt rainier probe

Writing to RAM capable media was broken by the moving of write flag
detection from probe to drive open time.  The media would stay
terminally RO due to the set_disk_ro() call.

This fixes the code to do the right thing - the detection stays at open
time (which it must, since it depends on the media), and we fail with
-EROFS if the media can't be written.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/cdrom.c
drivers/ide/ide-cd.c
drivers/scsi/sr.c