[PATCH] 2.6.8-rc2: MO-drive write open fix

From: Stefan Meyknecht
Date: Sun Jul 18 2004 - 09:21:50 EST


Hi,

the attached patch allows me to mount my mo-drive readwrite. Please
review.

Stefan

--
Stefan Meyknecht
stefan at meyknecht dot org
--- linux/drivers/cdrom/cdrom.c.orig 2004-07-18 15:01:17.087953545 +0200
+++ linux/drivers/cdrom/cdrom.c 2004-07-18 15:32:26.325231750 +0200
@@ -899,7 +899,7 @@
ret = -EROFS;
if (cdrom_open_write(cdi))
goto err;
- if (!CDROM_CAN(CDC_RAM))
+ if (!CDROM_CAN(CDC_RAM) && !CDROM_CAN(CDC_MO_DRIVE))
goto err;
ret = 0;
}