* [gentoo-dev] missing ide discs mapping is udev's fault?
@ 2006-02-21 7:31 Christian Bricart
2006-02-21 17:21 ` Richard Fish
2006-02-21 19:50 ` Greg KH
0 siblings, 2 replies; 8+ messages in thread
From: Christian Bricart @ 2006-02-21 7:31 UTC (permalink / raw
To: gentoo-dev
Hi,
yesterday I've noticed, that some mappings in /dev/discs are missing on
my machine.
Actually I have an additional ATA controller with some discs attached.
So I have /dev/hda through /dev/hdl which are ok. But the mappings to
/dev/discs/discX with X > 7 are missing.
Whose fault would that be in the first case? hot- or coldplug? udev?
I've looked through /etc/udev/scripts/ide-devfs.sh but could not find
anything wrong there so far.
I've noticed he missing mappings as e.g. /etc/init.d/hdparm loops
through /dev/discs/discX to set params for all discs attached and thus
misses the last two.
I wanted to file a bug report, but I'm not certain if it's actually
udev's fault.
Christian
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 7:31 [gentoo-dev] missing ide discs mapping is udev's fault? Christian Bricart
@ 2006-02-21 17:21 ` Richard Fish
2006-02-21 19:50 ` Christian Bricart
2006-02-21 19:50 ` Greg KH
1 sibling, 1 reply; 8+ messages in thread
From: Richard Fish @ 2006-02-21 17:21 UTC (permalink / raw
To: gentoo-dev
On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
> Hi,
> So I have /dev/hda through /dev/hdl which are ok. But the mappings to
> /dev/discs/discX with X > 7 are missing.
<snip>
>
> I wanted to file a bug report, but I'm not certain if it's actually
> udev's fault.
Yes, it is udev's fault, but it is not a bug. The /dev/discs nodes
were a convention of devfs, and _never_ standard.
>From the ChangeLog (there are many other entries BTW):
*udev-064-r1 (31 Jul 2005)
31 Jul 2005; Greg Kroah-Hartman <gregkh@gentoo.org>
+files/udev.rules-064-r1, +udev-064-r1.ebuild:
Start moving to a sane /dev naming scheme.
This release removes the devfs names for the tty and consolde devices, and the
symlinks that were implementing the LSB standard names. We only implement the
LSB names now, which saves over 3Mb of RAM on /dev.
-Richard
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 17:21 ` Richard Fish
@ 2006-02-21 19:50 ` Christian Bricart
2006-02-21 20:01 ` Greg KH
2006-02-21 22:56 ` Richard Fish
0 siblings, 2 replies; 8+ messages in thread
From: Christian Bricart @ 2006-02-21 19:50 UTC (permalink / raw
To: gentoo-dev
Richard Fish wrote:
> On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
>
>>Hi,
>>So I have /dev/hda through /dev/hdl which are ok. But the mappings to
>>/dev/discs/discX with X > 7 are missing.
>
>
> <snip>
>
>>I wanted to file a bug report, but I'm not certain if it's actually
>>udev's fault.
>
>
> Yes, it is udev's fault, but it is not a bug. The /dev/discs nodes
> were a convention of devfs, and _never_ standard.
Re-checked.. /dev/discs seems to be based on /dev/ide/-mapping and yet
they are not complete:
magrathea ~ # find /dev/ide -name disc -o -name cd
/dev/ide/host0/bus0/target0/lun0/disc
/dev/ide/host0/bus0/target1/lun0/disc
/dev/ide/host0/bus1/target0/lun0/cd
/dev/ide/host0/bus1/target1/lun0/disc
/dev/ide/host2/bus0/target0/lun0/disc
/dev/ide/host2/bus0/target1/lun0/disc
/dev/ide/host4/bus0/target0/lun0/disc
/dev/ide/host4/bus1/target0/lun0/disc
/dev/ide/host4/bus1/target1/lun0/disc
so /dev/ide/host/bus0/target1/lun0/disc (which ought to be /dev/hdj) is
missing there.
But see the listing in sysfs:
magrathea ~ # find /sys/bus/ide/drivers/ide* -type l | sort -k 7 -t /
/sys/bus/ide/drivers/ide-disk/0.0
/sys/bus/ide/drivers/ide-disk/0.1
/sys/bus/ide/drivers/ide-cdrom/1.0
/sys/bus/ide/drivers/ide-disk/1.1
/sys/bus/ide/drivers/ide-disk/2.0
/sys/bus/ide/drivers/ide-disk/2.1
/sys/bus/ide/drivers/ide-disk/4.0
/sys/bus/ide/drivers/ide-disk/4.1
/sys/bus/ide/drivers/ide-disk/5.0
/sys/bus/ide/drivers/ide-disk/5.1
and the listing from dmesg:
magrathea ~# dmesg | grep ^hd | grep drive
hda: Maxtor 4D040H2, ATA DISK drive
hdb: SAMSUNG SP1614N, ATA DISK drive
hdc: IDE-CD R/RW 16x10A, ATAPI CD/DVD-ROM drive
hdd: Maxtor 92041U4, ATA DISK drive
hde: Maxtor 4G120J6, ATA DISK drive
hdf: Maxtor 96147H6, ATA DISK drive
hdi: SAMSUNG SP1614N, ATA DISK drive
hdj: IC35L040AVER07-0, ATA DISK drive
hdk: SAMSUNG SP1614N, ATA DISK drive
hdl: SAMSUNG SP1614N, ATA DISK drive
And hdparm iterates through /dev/ide/* if found...
Is /dev/ide according to LSB? Or is this also supposed to vanish? ;-)
Then I'll have to file a bug for hdparm instead :)
Christian
>
> From the ChangeLog (there are many other entries BTW):
>
> *udev-064-r1 (31 Jul 2005)
>
> 31 Jul 2005; Greg Kroah-Hartman <gregkh@gentoo.org>
> +files/udev.rules-064-r1, +udev-064-r1.ebuild:
> Start moving to a sane /dev naming scheme.
> This release removes the devfs names for the tty and consolde devices, and the
> symlinks that were implementing the LSB standard names. We only implement the
> LSB names now, which saves over 3Mb of RAM on /dev.
>
> -Richard
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 7:31 [gentoo-dev] missing ide discs mapping is udev's fault? Christian Bricart
2006-02-21 17:21 ` Richard Fish
@ 2006-02-21 19:50 ` Greg KH
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-02-21 19:50 UTC (permalink / raw
To: gentoo-dev
On Tue, Feb 21, 2006 at 08:31:12AM +0100, Christian Bricart wrote:
> Hi,
>
> yesterday I've noticed, that some mappings in /dev/discs are missing on
> my machine.
> Actually I have an additional ATA controller with some discs attached.
> So I have /dev/hda through /dev/hdl which are ok. But the mappings to
> /dev/discs/discX with X > 7 are missing.
>
> Whose fault would that be in the first case? hot- or coldplug? udev?
> I've looked through /etc/udev/scripts/ide-devfs.sh but could not find
> anything wrong there so far.
If you are using the devfs-like udev compatibility scripts, sorry, but
you are on your own, as that naming scheme is not supported by anyone
anymore.
> I've noticed he missing mappings as e.g. /etc/init.d/hdparm loops
> through /dev/discs/discX to set params for all discs attached and thus
> misses the last two.
>
> I wanted to file a bug report, but I'm not certain if it's actually
> udev's fault.
bug reports are always the best way to handle this kind of thing.
thanks,
greg k-h
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 19:50 ` Christian Bricart
@ 2006-02-21 20:01 ` Greg KH
2006-02-21 22:56 ` Richard Fish
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-02-21 20:01 UTC (permalink / raw
To: gentoo-dev
On Tue, Feb 21, 2006 at 08:50:07PM +0100, Christian Bricart wrote:
> Richard Fish wrote:
> >On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
> >
> >>Hi,
> >>So I have /dev/hda through /dev/hdl which are ok. But the mappings to
> >>/dev/discs/discX with X > 7 are missing.
> >
> >
> ><snip>
> >
> >>I wanted to file a bug report, but I'm not certain if it's actually
> >>udev's fault.
> >
> >
> >Yes, it is udev's fault, but it is not a bug. The /dev/discs nodes
> >were a convention of devfs, and _never_ standard.
>
> Re-checked.. /dev/discs seems to be based on /dev/ide/-mapping and yet
> they are not complete:
>
> magrathea ~ # find /dev/ide -name disc -o -name cd
> /dev/ide/host0/bus0/target0/lun0/disc
> /dev/ide/host0/bus0/target1/lun0/disc
> /dev/ide/host0/bus1/target0/lun0/cd
> /dev/ide/host0/bus1/target1/lun0/disc
> /dev/ide/host2/bus0/target0/lun0/disc
> /dev/ide/host2/bus0/target1/lun0/disc
> /dev/ide/host4/bus0/target0/lun0/disc
> /dev/ide/host4/bus1/target0/lun0/disc
> /dev/ide/host4/bus1/target1/lun0/disc
>
> so /dev/ide/host/bus0/target1/lun0/disc (which ought to be /dev/hdj) is
> missing there.
> But see the listing in sysfs:
>
> magrathea ~ # find /sys/bus/ide/drivers/ide* -type l | sort -k 7 -t /
> /sys/bus/ide/drivers/ide-disk/0.0
> /sys/bus/ide/drivers/ide-disk/0.1
> /sys/bus/ide/drivers/ide-cdrom/1.0
> /sys/bus/ide/drivers/ide-disk/1.1
> /sys/bus/ide/drivers/ide-disk/2.0
> /sys/bus/ide/drivers/ide-disk/2.1
> /sys/bus/ide/drivers/ide-disk/4.0
> /sys/bus/ide/drivers/ide-disk/4.1
> /sys/bus/ide/drivers/ide-disk/5.0
> /sys/bus/ide/drivers/ide-disk/5.1
Look in /sys/block/ for your block devices, not in the ide specific
directory.
> and the listing from dmesg:
>
> magrathea ~# dmesg | grep ^hd | grep drive
> hda: Maxtor 4D040H2, ATA DISK drive
> hdb: SAMSUNG SP1614N, ATA DISK drive
> hdc: IDE-CD R/RW 16x10A, ATAPI CD/DVD-ROM drive
> hdd: Maxtor 92041U4, ATA DISK drive
> hde: Maxtor 4G120J6, ATA DISK drive
> hdf: Maxtor 96147H6, ATA DISK drive
> hdi: SAMSUNG SP1614N, ATA DISK drive
> hdj: IC35L040AVER07-0, ATA DISK drive
> hdk: SAMSUNG SP1614N, ATA DISK drive
> hdl: SAMSUNG SP1614N, ATA DISK drive
>
> And hdparm iterates through /dev/ide/* if found...
> Is /dev/ide according to LSB? Or is this also supposed to vanish? ;-)
/dev/ide is _not_ according to the LSB.
It's up to the hdparm authors if they still wish to support this
obsolete interface or not.
thanks,
greg k-h
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 19:50 ` Christian Bricart
2006-02-21 20:01 ` Greg KH
@ 2006-02-21 22:56 ` Richard Fish
2006-02-22 0:12 ` Mike Frysinger
1 sibling, 1 reply; 8+ messages in thread
From: Richard Fish @ 2006-02-21 22:56 UTC (permalink / raw
To: gentoo-dev
On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
> And hdparm iterates through /dev/ide/* if found...
I assume you are talking about the init script? Because my hdparm
binary requires one to specify a device node, there is no iteration...
If so, AFAIK that exists only for those still running devfs. If
/dev/ide does not exist, it iterates over all devices found by
"dev/hd?".
-Richard
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-21 22:56 ` Richard Fish
@ 2006-02-22 0:12 ` Mike Frysinger
2006-02-22 6:42 ` Christian Bricart
0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2006-02-22 0:12 UTC (permalink / raw
To: gentoo-dev
On Tuesday 21 February 2006 17:56, Richard Fish wrote:
> On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
> > And hdparm iterates through /dev/ide/* if found...
>
> I assume you are talking about the init script? Because my hdparm
> binary requires one to specify a device node, there is no iteration...
>
> If so, AFAIK that exists only for those still running devfs. If
> /dev/ide does not exist, it iterates over all devices found by
> "dev/hd?".
correct ... hdparm init script assumes if you have the /dev/ide compatible
stuff, you're using devfs-style names, otherwise it'll use normal /dev/hd?
parsing
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] missing ide discs mapping is udev's fault?
2006-02-22 0:12 ` Mike Frysinger
@ 2006-02-22 6:42 ` Christian Bricart
0 siblings, 0 replies; 8+ messages in thread
From: Christian Bricart @ 2006-02-22 6:42 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger schrieb:
> On Tuesday 21 February 2006 17:56, Richard Fish wrote:
>> On 2/21/06, Christian Bricart <christian@bricart.de> wrote:
>>> And hdparm iterates through /dev/ide/* if found...
>> I assume you are talking about the init script? Because my hdparm
>> binary requires one to specify a device node, there is no iteration...
>>
>> If so, AFAIK that exists only for those still running devfs. If
>> /dev/ide does not exist, it iterates over all devices found by
>> "dev/hd?".
>
> correct ... hdparm init script assumes if you have the /dev/ide compatible
> stuff, you're using devfs-style names, otherwise it'll use normal /dev/hd?
> parsing
yep, see: http://bugs.gentoo.org/show_bug.cgi?id=123647
(which has status FIXED right now ;) )
Christian
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-02-22 6:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 7:31 [gentoo-dev] missing ide discs mapping is udev's fault? Christian Bricart
2006-02-21 17:21 ` Richard Fish
2006-02-21 19:50 ` Christian Bricart
2006-02-21 20:01 ` Greg KH
2006-02-21 22:56 ` Richard Fish
2006-02-22 0:12 ` Mike Frysinger
2006-02-22 6:42 ` Christian Bricart
2006-02-21 19:50 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox