[pve-devel] restrict scsi-block to /dev/disk/

Dietmar Maurer dietmar at proxmox.com
Mon Mar 12 08:26:46 CET 2012


> 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


More information about the pve-devel mailing list