[pve-devel] restrict scsi-block to /dev/disk/
Alexandre DERUMIER
aderumier at odiso.com
Mon Mar 12 08:44:15 CET 2012
I don't known what is major/minor ;)
Could you provide an example ?
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: pve-devel at pve.proxmox.com
Envoyé: Lundi 12 Mars 2012 08:26:46
Objet: RE: [pve-devel] restrict scsi-block to /dev/disk/
> 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
--
--
Alexandre D erumier
Ingénieur Système
Fixe : 03 20 68 88 90
Fax : 03 20 68 90 81
45 Bvd du Général Leclerc 59100 Roubaix - France
12 rue Marivaux 75002 Paris - France
More information about the pve-devel
mailing list