Re: OT] Joerg Schilling flames Linux on his Blog

From: Gerd Knorr
Date: Tue May 31 2005 - 15:08:06 EST


Hi,

> Well I remember the first time I saw devfs running, I thought "Wow
> finally I have a way to find the disc that is scsi id 3 on controller 0
> even if I add a device at id 2 after setting up the system", something

> I think sysfs can do it too, although I haven't looked to much at sysfs
> yet.

Yep, it can.

> I don't know if the ide or scsi method is currently more sane, but it
> sure would be nice to have a consistent behaviour between the two.

On my suse 9.3, out-of-the-box, I find this (implemented via
udev rules):

# find /dev/cd /dev/disk -type l -print | sort
/dev/cd/by-id/HL-DT-ST_DVDRAM_GSA-4040B_K213BDG5213
/dev/cd/by-id/LG_CD-RW_CED-8080B_2000_07_27e
/dev/cd/by-path/pci-0000:00:04.1-ide-1:0
/dev/cd/by-path/pci-0000:00:04.1-ide-1:1
/dev/disk/by-id/IBM-DTLA-305040_YJEYJM36751
/dev/disk/by-id/IBM-DTLA-305040_YJEYJM36751p1
[ ... ]
/dev/disk/by-id/SIBM_DCAS-34330_B3GX3681
/dev/disk/by-id/SIBM_DCAS-34330_B3GX3681p1
/dev/disk/by-id/SIBM_DCAS-34330_B3GX3681p2
/dev/disk/by-label/WIN98
/dev/disk/by-label/unknown
/dev/disk/by-path/pci-0000:00:04.1-ide-0:0
/dev/disk/by-path/pci-0000:00:04.1-ide-0:0p1
[ ... ]
/dev/disk/by-path/pci-0000:00:0e.0-scsi-0:0:0:0
/dev/disk/by-path/pci-0000:00:0e.0-scsi-0:0:0:0-generic
/dev/disk/by-path/pci-0000:00:0e.0-scsi-0:0:0:0p1
/dev/disk/by-path/pci-0000:00:0e.0-scsi-0:0:0:0p2
/dev/disk/by-uuid/3140-1206
/dev/disk/by-uuid/5fbce796-2a1a-4ea3-bd5f-be35b28b2fb1
/dev/disk/by-uuid/b6a45df7-63bb-4890-b5d2-7bdcbe6c70a5
/dev/disk/by-uuid/cb367983-ac59-42cd-839d-b5cf0735fae5
/dev/disk/by-uuid/unknown

You'll have stable names both by connection path (great for the
raid case) and by device name (useful for the usb burner which
you plug into a different port each time). Guess you'll find
there what you are looking for ;)

Gerd

--
export CDR_DEVICE=/dev/cd/by-id/LG_CD-RW_CED-8080B_2000_07_27e
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/