From: "J.A. Magallon" <jamagallon@able.es>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <gregkh@suse.de>
Subject: Re: udev::cdsymlinks does not consider a 'cdrw' as a 'cdrom'
Date: Sat, 12 Feb 2005 01:18:01 +0000 [thread overview]
Message-ID: <1108171081l.5587l.2l@werewolf.able.es> (raw)
In-Reply-To: <1108170796l.5587l.1l@werewolf.able.es> (from jamagallon@able.es on Sat Feb 12 02:13:16 2005)
[-- 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 --]
prev parent reply other threads:[~2005-02-12 1:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-12 1:03 J.A. Magallon
2005-02-12 1:13 ` J.A. Magallon
2005-02-12 1:18 ` J.A. Magallon [this message]
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=1108171081l.5587l.2l@werewolf.able.es \
--to=jamagallon@able.es \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®