mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom'
@ 2005-02-12  1:03 J.A. Magallon
  2005-02-12  1:13 ` J.A. Magallon
  0 siblings, 1 reply; 3+ messages in thread
From: J.A. Magallon @ 2005-02-12  1:03 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Greg KH

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

Hi...

I have a little problem with udev. I have udev-051, but have tried
cdsymlinks.c from 053 and is the same.

It does not give 'cdrom' or 'dvd' for DVD writers.
In one box, hdb is a DVD, and hdc is a DVDRW:

werewolf:/proc/sys/dev/cdrom> cat info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:             hdc     hdb
drive speed:            40      48
drive # of slots:       1       1
Can close tray:         1       1
Can open tray:          1       1
Can lock tray:          1       1
Can change speed:       1       1
Can select disk:        0       0
Can read multisession:  1       1
Can read MCN:           1       1
Reports media changed:  1       1
Can play audio:         1       1
Can write CD-R:         1       0
Can write CD-RW:        1       0
Can read DVD:           1       1
Can write DVD-R:        1       0
Can write DVD-RAM:      1       0
Can read MRW:           1       1
Can write MRW:          1       1
Can write RAM:          1       1

werewolf:/proc/sys/dev/cdrom> cdsymlinks hdb
 cdrom dvd
werewolf:/proc/sys/dev/cdrom> cdsymlinks hdc
 cdrw dvdrw dvdram
werewolf:/proc/sys/dev/cdrom> cdsymlinks hdc -d
Devices: hdb hdc
DVDRAM : 0 1 hdc
DVDRW  : 0 1 hdc
DVD    : 1 1 hdb hdc
CDRW   : 0 1 hdc
CDR    : 0 1 hdc
CDWMRW :
CDMRW  :
CDROM  : (all) hdb hdc
 cdrw dvdrw dvdram

(btw, I did not know my DVD _reader_ can write anything like MRW or RAM)

In other box that just has also a combo drive (DVD + DVDRW 4.7):

nada:/proc/sys/dev/cdrom# cat info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:             hdh
drive speed:            32
drive # of slots:       1
Can close tray:         1
Can open tray:          1
Can lock tray:          1
Can change speed:       1
Can select disk:        0
Can read multisession:  1
Can read MCN:           1
Reports media changed:  1
Can play audio:         1
Can write CD-R:         1
Can write CD-RW:        1
Can read DVD:           1
Can write DVD-R:        1
Can write DVD-RAM:      1
Can read MRW:           1
Can write MRW:          1
Can write RAM:          1

nada:~> cdsymlinks hdh   

nada:~> cdsymlinks hdh -d
Devices: hdh

DVDRAM : 1
 hdh

DVDRW  : 1
 hdh

DVD    : 1
 hdh

CDRW   : 1
 hdh

CDR    : 1
 hdh

CDWMRW :
CDMRW  :
CDROM  : (all) hdh

And now that I realize it, why the different debug output ???

TIA

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandrakelinux release 10.2 (Cooker) for i586
Linux 2.6.10-jam9 (gcc 3.4.3 (Mandrakelinux 10.2 3.4.3-3mdk)) #1


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom'
  2005-02-12  1:03 udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom' J.A. Magallon
@ 2005-02-12  1:13 ` J.A. Magallon
  2005-02-12  1:18   ` J.A. Magallon
  0 siblings, 1 reply; 3+ messages in thread
From: J.A. Magallon @ 2005-02-12  1:13 UTC (permalink / raw)
  To: linux-kernel

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


On 2005.02.12, J.A. Magallon wrote:
> Hi...
> 
> I have a little problem with udev. I have udev-051, but have tried
> cdsymlinks.c from 053 and is the same.
> 
> It does not give 'cdrom' or 'dvd' for DVD writers.
> In one box, hdb is a DVD, and hdc is a DVDRW:
> 

Opps, and cdsymlinks.c and .sh behave different:

werewolf:~# /sbin/cdsymlinks hdc -d
Devices: hdb hdc
DVDRAM : 0 1 hdc
DVDRW  : 0 1 hdc
DVD    : 1 1 hdb hdc
CDRW   : 0 1 hdc
CDR    : 0 1 hdc
CDWMRW :
CDMRW  :
CDROM  : (all) hdb hdc
 cdrw dvdrw dvdram

werewolf:~# /etc/udev/scripts/cdsymlinks.sh hdc -d
Devices: hdb hdc
DVDRAM : 0 1 hdc
DVDRW  : 0 1 hdc
DVD    : 1 1 hdb hdc
CDRW   : 0 1 hdc
CD-R   : 0 1 hdc
CDMRW  : 1 1 hdb hdc
CDM    : 1 1 hdb hdc
CDROM  : (all) hdb hdc
 cdrom1 cdrw dvd1 dvdrw dvdram

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandrakelinux release 10.2 (Cooker) for i586
Linux 2.6.10-jam9 (gcc 3.4.3 (Mandrakelinux 10.2 3.4.3-3mdk)) #1


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom'
  2005-02-12  1:13 ` J.A. Magallon
@ 2005-02-12  1:18   ` J.A. Magallon
  0 siblings, 0 replies; 3+ messages in thread
From: J.A. Magallon @ 2005-02-12  1:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH

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


On 2005.02.12, J.A. Magallon wrote:
> 
> On 2005.02.12, J.A. Magallon wrote:
> > Hi...
> > 
> > I have a little problem with udev. I have udev-051, but have tried
> > cdsymlinks.c from 053 and is the same.
> > 
> > It does not give 'cdrom' or 'dvd' for DVD writers.
> > In one box, hdb is a DVD, and hdc is a DVDRW:
> > 
> 
> Opps, and cdsymlinks.c and .sh behave different:
> 
> werewolf:~# /sbin/cdsymlinks hdc -d
> Devices: hdb hdc
> DVDRAM : 0 1 hdc
> DVDRW  : 0 1 hdc
> DVD    : 1 1 hdb hdc
> CDRW   : 0 1 hdc
> CDR    : 0 1 hdc
> CDWMRW :
> CDMRW  :
> CDROM  : (all) hdb hdc
>  cdrw dvdrw dvdram
> 
> werewolf:~# /etc/udev/scripts/cdsymlinks.sh hdc -d
> Devices: hdb hdc
> DVDRAM : 0 1 hdc
> DVDRW  : 0 1 hdc
> DVD    : 1 1 hdb hdc
> CDRW   : 0 1 hdc
> CD-R   : 0 1 hdc
> CDMRW  : 1 1 hdb hdc
> CDM    : 1 1 hdb hdc
> CDROM  : (all) hdb hdc
>  cdrom1 cdrw dvd1 dvdrw dvdram
> 


Caught it:

--- cdsymlinks.c.orig	2005-02-12 02:17:19.000000000 +0100
+++ cdsymlinks.c	2005-02-12 02:17:26.000000000 +0100
@@ -267,8 +267,8 @@
             list_delete (&allowed_output);
             list_assign_split (&allowed_output, p.we_wordv[0] + 7);
           }
-          else if (!strncmp (p.we_wordv[0], "NUMBERED_LINKS=", 14))
-            numbered_links = atoi (p.we_wordv[0] + 14);
+          else if (!strncmp (p.we_wordv[0], "NUMBERED_LINKS=", 15))
+            numbered_links = atoi (p.we_wordv[0] + 15);
           break;
 	}
 	/* fall through */


--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandrakelinux release 10.2 (Cooker) for i586
Linux 2.6.10-jam9 (gcc 3.4.3 (Mandrakelinux 10.2 3.4.3-3mdk)) #1


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-12  1:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-12  1:03 udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom' J.A. Magallon
2005-02-12  1:13 ` J.A. Magallon
2005-02-12  1:18   ` J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®