> Why do you mean by major/minor device number ? > > > we can also try to test if > > /sys/block/sdXXX/device/scsi_device > > exist > > > /dev/disk/by-id/scsi-XXXX are symlink to /dev/sdX But testing major/minor requires one simple stat call - isn't that easier? - Dietmar