lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48DBFEEF.8090109@s5r6.in-berlin.de>
Date:	Thu, 25 Sep 2008 23:13:19 +0200
From:	Stefan Richter <stefanr@...6.in-berlin.de>
To:	Tino Keitel <tino.keitel@....de>
CC:	linux-kernel@...r.kernel.org, linux-hotplug@...r.kernel.org,
	Kay Sievers <kay.sievers@...y.org>
Subject: Re: Differend udev names with different kernels

Tino Keitel wrote:

Tino, when you reply on LKML, please keep _all_ responders in a thread 
in the Cc list.  I for one am not subscribed to linux-hotplug, and I may 
easily miss a response on LKML with its hundreds of messages per day if 
I am not Cc'd.  Thanks.

> On Thu, Sep 25, 2008 at 07:08:20 +0200, Stefan Richter wrote:
>> Kay Sievers wrote:
>>> On Wed, Sep 24, 2008 at 13:01, Tino Keitel <tino.keitel@....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.
> 
> It has the same name with 2.6.26.3 and with 2.6.27-rc7-something with
> fastboot merged. So why would this be a regression? The different name
> (scsi-...) happended with a vanilla 2.6.27-rc7.

I misunderstood.  (Comprehension difficulties at 0700 AM.)

It is of course intended that FireWire disks get the 
/dev/disk/by-id/ieee1394-* link.  Only this one is reliably unique.  The 
/dev/disk/scsi-* link, which I presume is generated from SCSI INQUIRY 
data, is alas often not unique if it comes from FireWire disks.

> Initially, my intention was to find a unique name for the hard disk,
> that stays even if the disk is changed from Firewire to USB. However,
> this doesn't seem to be possible with a default udev.

This is only possible with udev scripts that are customized by the user 
for each individual disk.

Dual FireWire + USB enclosures use entirely separate firmwares for their 
FireWire and USB interfaces because the protocols are so different. 
Hence there are also no unique device properties of the FireWire and USB 
side that can be generally recognized as belonging to the identical device.

An alternative though would be filesystem labels or filesystem UUIDs, if 
unique and persistent identifiers at the filesystem level rather than at 
the block device level are sufficient for your needs.
-- 
Stefan Richter
-=====-==--- =--= ==--=
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ