Hello,
by following the discussion I still miss a naming sceme for
devices like disks, tapes, cdrom for the user (no kernelhackers, but the
daily user running the system for some productive work). Does there exist
a naming sceme for persistant names for those devices? I think of something
like scsidev (http://www.garloff.de/kurt/linux/scsidev/#scsidev).
I think the scsidev idea could be extended to a general sceme that
satisfies all technologies (not only ide and scsi).
I think of something like
/dev/<device-type>/<technologie>_<Uniq-Number>_<Bus-number>_<Target>_<Lun>_<Device_type_specific>
<device-type> would be disks, tapes, cd-rom and other devices (scanner?)
<technologie> is something really readable for the user (ide, scsi, dasd (dasd are
disks on the IBM zSeries)
<Uniq-number> something to make a device uniq. examples for this could be:
- PC the I/O-port used by the controller
- DASD the device-port where the dasd is assigned
<bus-Number>
<Target>
<Lun> As intented by SCSI. On technologies where they make no sense
just leave them 0 (for example dasd don`t have that).
<device_type_specific> depends on the device type.
for disks this is the partition-number
for tapes rewind, norewind, compression, density
examples:
disks:
/dev/disks/ide_01f0_0_0_0_0 for the whole IDE disk
/dev/disks/ide_01f0_0_0_0_1 for partition 1
.
.
/dev/disks/ide_01f0_0_0_0_31 for partition 31
/dev/disks/scsi_0330_0_1_0_0 for the controller at port 0x330, disk bus 0 target 1, lun 0
/dev/disks/scsi_0330_0_1_0_1 for partition 1
.
.
/dev/disks/scsi_0330_0_1_0_15 for partition 15
/dev/disks/dasd_0150_0_0_0_0 for dasd at device-port 0x150, whole disk
/dev/disks/dasd_0150_0_0_0_1 for partition 1
.
.
/dev/disks/dasd_0150_0_0_0_3 for partition 3
tapes:
/dev/tapes/scsi_0330_0_2_0_r auto-rewind SCSI-Tape at controller at Port 0x330
/dev/tapes/scsi_0330_0_2_0_n no-rewind SCSI-Tape at controller at Port 0x330
Beside some standard devices, the devices could be created
- at system start for coldplugged devices
- by /sbin/hotplug for hotpluged devices
This naming sceme could be used for kernel 2.4 by creating nodes and for
kernel 2.5 by making symbolic links to /devices.
something forgotten?
Ihno
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/