lkml.org 
[lkml]   [2000]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: patch: atapi dvd-ram support
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
--- 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);
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.121 / U:3.296 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site