linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: linux-kernel@vger.kernel.org, linux-hotplug@vger.kernel.org
Subject: Re: Differend udev names with different kernels
Date: Thu, 25 Sep 2008 05:08:20 +0000	[thread overview]
Message-ID: <48DB1CC4.2040004@s5r6.in-berlin.de> (raw)
In-Reply-To: <3ae72650809242012r7d144a64l35777f2a7bacbaa0@mail.gmail.com>

Kay Sievers wrote:
> On Wed, Sep 24, 2008 at 13:01, Tino Keitel <tino.keitel@gmx.de> wrote:
>> what's the intention of /dev/disk/by-id/?
>>
>> My firewire hard disk seems to have different names with different
>> kernels.
>>
>> With 2.6.26.3, it's name is
>> /dev/disk/by-id/ieee1394-0030e001e0006585:00043c:0000.
>>
>> With someting after 2.6.27-rc7, merged with Arjan's fastboot branch,
>> the disk has the same name.

Then this is a regression of the fastboot patch or whatever.

I will watch what will happen in 2.6.28-rc.

>> With 2.6.27-rc7, it is called
>> /dev/disk/by-id/scsi-1WDC_WD10EACS-00D6B0_WD-WCAU41668315.
> 
> Seems, for some reason, the "ieee1394_id" attribute becomes readable
> because of lucky timing, which wasn't the case before.
> 
>> One major config difference is that 2.6.26.3 has CONFIG_FIREWIRE and
>> CONFIG_FIREWIRE_SBP2 set to "m", whereas the 2.6.27 kernels have set
>> them to "y". But that doesn't explain the difference between both
>> 2.6.27-rc kernels.
> 
> I guess, it's just a not-easy-to-reproduce timing issue with the sysfs
> attribute.
> 
>> Shouldn't these names be somewhat constant? Otherwise they would be
>> totally useless.
> 
> Yeah, sure they should not change like this.
> 
> We could just drop the ieee1394-* link creation entirely, if they
> never worked as expected.

They currently work.  I never heard of them not working.

Even if there were already problems now, then the necessary course of 
action would be to fix them instead of dropping them.

Or fix the fine SCSI stack already to properly export target identifiers 
and LU identifiers.  (Not going to happen because the SCSI folks just 
don't get any midlayer stuff of that sort done, ever.)


> Or we can provide it as an additional link
> instead of making it skip the scsi-* link creation.

The scsi-* link may not be unique because it may be based on unsuitable 
information generated by the SBP-2 bridge device's firmware.


> Tino, care to try
> if something like the attached works for your setup and creates at
> least the scsi-links, and, if luckily timed, the ieee1394 links?
> 
> Stefan, ieee1394 hooks into scsi logic which, i guess, creates the
> attribute _after_ event time, so udev will not see the attribute when
> the device is announced. Any idea how to fix that?

I will look into it.
-- 
Stefan Richter
-===-=--- =--= =--http://arcgraph.de/sr/

  reply	other threads:[~2008-09-25  5:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 20:01 Differend udev names with different kernels Tino Keitel
2008-09-25  3:12 ` Kay Sievers
2008-09-25  5:08   ` Stefan Richter [this message]
2008-09-25  5:47     ` Tino Keitel
2008-09-25 21:13       ` Stefan Richter
2008-09-25 21:23         ` Tino Keitel
2008-09-25  5:59     ` Stefan Richter
2008-09-25  6:09       ` Kay Sievers

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=48DB1CC4.2040004@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).