public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Hisaaki Shibata <shibata@luky.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: patch: atapi dvd-ram support
Date: Sat, 28 Oct 2000 20:10:47 -0700	[thread overview]
Message-ID: <20001028201047.A5879@suse.de> (raw)
In-Reply-To: <20001028000448.D3919@suse.de> <20001028232703S.shibata@luky.org> <20001028134056.J3919@suse.de> <20001029120703Y.shibata@luky.org>
In-Reply-To: <20001029120703Y.shibata@luky.org>; from shibata@luky.org on Sun, Oct 29, 2000 at 12:07:03PM +0900

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

On Sun, Oct 29 2000, Hisaaki Shibata wrote:
> > Ok, does /proc/sys/dev/cdrom/info list DVD-RAM as a capability?
> 
> Yes.
> I think it seems good.
> 
> # more info 
> CD-ROM information, Id: cdrom.c 3.12 2000/10/22
> 
> Can write DVD-RAM:      1

So far, so good.

> Should I set any flags to permit write a DVD-RAM media ?

No, as I said it should detect it automatically. But d'oh, I
just realised that it is set too soon... Sorry, try with this
patch.

-- 
* Jens Axboe <axboe@suse.de>
* SuSE Labs

[-- Attachment #2: dvdram-ro_fix.diff --]
[-- Type: text/plain, Size: 732 bytes --]

--- drivers/block/ide-cd.c~	Sat Oct 28 20:09:03 2000
+++ drivers/block/ide-cd.c	Sat Oct 28 20:09:23 2000
@@ -2597,8 +2597,6 @@
 	int minor = drive->select.b.unit << PARTN_BITS;
 	int nslots, ro;
 
-	ro = !CDROM_CONFIG_FLAGS(drive)->dvd_ram;
-	set_device_ro(MKDEV(HWIF(drive)->major, minor), ro);
 	set_blocksize(MKDEV(HWIF(drive)->major, minor), CD_FRAMESIZE);
 
 	drive->special.all	= 0;
@@ -2718,6 +2716,9 @@
 	info->start_seek	= 0;
 
 	nslots = ide_cdrom_probe_capabilities (drive);
+
+	ro = !CDROM_CONFIG_FLAGS(drive)->dvd_ram;
+	set_device_ro(MKDEV(HWIF(drive)->major, minor), ro);
 
 	if (ide_cdrom_register (drive, nslots)) {
 		printk ("%s: ide_cdrom_setup failed to register device with the cdrom driver.\n", drive->name);

  reply	other threads:[~2000-10-29  3:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20001024162112.A520@suse.de>
2000-10-28  5:10 ` patch: atapi dvd-ram support Hisaaki Shibata
2000-10-28  5:30   ` Andre Hedrick
2000-10-28  7:04     ` Jens Axboe
2000-10-28  7:43       ` Andre Hedrick
2000-10-28  7:54         ` Jens Axboe
2000-10-28  7:04   ` Jens Axboe
2000-10-28 14:27     ` Hisaaki Shibata
2000-10-28 20:40       ` Jens Axboe
2000-10-29  3:07         ` Hisaaki Shibata
2000-10-29  3:10           ` Jens Axboe [this message]
2000-10-29  4:41             ` Hisaaki Shibata
2000-10-29 22:12               ` Jens Axboe
2000-10-30 18:14                 ` Hisaaki Shibata
2000-10-30 22:59                   ` Jens Axboe
2000-10-31 16:08                     ` Hisaaki Shibata
2000-11-10 18:17                 ` Hisaaki Shibata
2000-11-12  8:35                   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001028201047.A5879@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shibata@luky.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox