ibm-s390-linux / s390-tools

Tools for use with the s390 Linux kernel and device drivers
MIT License
63 stars 60 forks source link

Get lsluns to display /dev/sdX #33

Closed solskogen closed 5 years ago

solskogen commented 6 years ago

lsluns gives /dev/sgX, but I would rather it to display /dev/sdX instead. Would that be possible?

steffen-maier commented 6 years ago

I'm sorry, but this is beyond the functional scope of lsluns. See commit e748fff3479f8f4ae7e8262b4913f6d08ff78f66 ("lsluns: enhance usage statement and man page") and commit e5f9279295780bd297f58cc23319878fadbc80f1 ("lsluns: complement alternative tools with lszdev "). Both refer to other tooling that provides what you ask for. The only reason why lsluns does provide the SCSI generic device is because its internal workings depend on that so it has to do this (and only this) lookup already. Also, not every LUN is a SCSI disk. There can also be tape drives or medium changers (or even DVD drives or other SCSI Peripheral Device Types). For tape/changer there are even different possible device drivers to chose from, each of which using their own device naming scheme.