Mailinglist Archive: packet-writing (124 mails)

< Previous Next >
Re: 0.0.2j/2.4.4 report
  • From: Jens Axboe <axboe@xxxxxxx>
  • Date: Mon, 30 Apr 2001 21:13:05 +0000 (UTC)
  • Message-id: <20010430231257.E7825@xxxxxxx>
On Mon, Apr 30 2001, Jens Axboe wrote:
> Your drive does not implement the write caching mode page, the attached
> patch should make sure that we don't print errors on that. It's not
> critical in any way.

Here it is

--
Jens Axboe

--- drivers/block/pktcdvd.c~ Mon Apr 30 23:06:33 2001
+++ drivers/block/pktcdvd.c Mon Apr 30 23:13:58 2001
@@ -1466,6 +1466,11 @@
init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_READ);
cgc.buflen = pd->mode_offset + 12;

+ /*
+ * caching mode page might not be there, so quiet this command
+ */
+ cgc.quiet = 1;
+
if ((ret = cdrom_mode_sense(pd->cdi, &cgc, GPMODE_WCACHING_PAGE, 0)))
return ret;

< Previous Next >