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

Alain Péan alain.pean at lpp.polytechnique.fr
Mon Mar 12 08:52:17 CET 2012


Hi Alexandre,

See for example :
http://publib.boulder.ibm.com/infocenter/dsichelp/ds8000ic/index.jsp?topic=%2Fcom.ibm.storage.ssic.help.doc%2Ff2c_linuxdevnaming_2hsag8.html

and :
http://www.thegeekstuff.com/2009/06/how-to-identify-major-and-minor-number-in-linux/

Alain

Le 12/03/2012 08:44, Alexandre DERUMIER a écrit :
> 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
>
>
>


-- 
=============================================================
Alain Péan - LPP/CNRS
Administrateur Système/Réseau
Laboratoire de Physique des Plasmas - UMR 7648
Observatoire de Saint-Maur
4, av de Neptune, Bat. A
94100 Saint-Maur des Fossés
Tel : 01-45-11-42-39 - Fax : 01-48-89-44-33
Attention, nouveau numéro UPMC à partir du 12/03 : 0144279239
=============================================================




More information about the pve-devel mailing list