Not logged in
Log in now
Create an account
Subscribe to LWN
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
Udev to the rescue, see /dev/disk/by-path! (Because that is what hdx reflected in a way.)
User-friendly disk names
Posted Jun 23, 2011 23:43 UTC (Thu) by giraffedata (subscriber, #1954)
But we're talking about kernel device names, not names of device special files. When the kernel warns about errors on a disk device, it identifies it by kernel device name and udev is irrelevant.
Except with at least some of these proposals, where udev could give the kernel a more meaningful name to use in communicating with the user.
The "sdaq" naming is really just a waste of a namespace. The kernel might as well talk to you in major/minor numbers.
Posted Jun 30, 2011 8:32 UTC (Thu) by zdzichu (subscriber, #17118)
# ls -lR /dev/disk/by-* | grep sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 ata-ST3250820AS_6QE0XHAV-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 scsi-SATA_ST3250820AS_6QE0XHAV-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 pci-0000:00:1f.2-scsi-3:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 4e11c761-2597-4b20-8e86-b9eac0a665d0 -> ../../sdc1
I'm sure there is some "udevadm info" invocation which will do the same and even provice more info.
Posted Nov 13, 2011 14:26 UTC (Sun) by Baylink (subscriber, #755)
This planning treads much the same ground as the best writeup I found on the topic:
and indeed, that gent's userspace approach may well belie the arguments of those who say this needs to be kernel-side, all by itself.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds