[DHCP tools + random] Pour que tout marche mieux.
Ignore-this: 590aacb4887da39fd62052c13508c65b darcs-hash:20120808150616-b6762-4d571c82be02d5cdaa6f275d2518eddd0061a42f.gz
This commit is contained in:
parent
b311d40252
commit
b7a333074d
5 changed files with 20 additions and 7 deletions
|
@ -30,8 +30,8 @@ map_file = ISCSI_MAP_FILE_TEMPLATE % baie
|
|||
# Rechreche le nom complet du périphérique dans /sys
|
||||
dev = os.readlink("/sys/block/%s/device" % sys.argv[1])
|
||||
|
||||
# L'identifiant est de la forme ".../0:0:0:19", le dernier nombre
|
||||
# étant le lun
|
||||
# L'identifiant est de la forme "../../../0:0:0:42", où 42 (j'ai perdu)
|
||||
# est le lun.
|
||||
try:
|
||||
lun = int(dev.rsplit(":", 1)[1])
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue