ide/host0/bus0/target0/lun0/disc) of the valid block name instead of
storing the name of the symlink (e.g., hda)
- ...since vgcreate doesn't follow symlinks (see accompanying checkin to
InstallPartitionDisks.py)
# and /dev/sda, etc. were just symlinks
try:
devfsname= os.readlink( "/dev/%s" % devicename )
# and /dev/sda, etc. were just symlinks
try:
devfsname= os.readlink( "/dev/%s" % devicename )
- valid_blk_names[devfsname]= devicename
+ valid_blk_names[devfsname]=None
# skip and ignore any partitions
if not valid_blk_names.has_key(device):
continue
# skip and ignore any partitions
if not valid_blk_names.has_key(device):
continue
- elif valid_blk_names[device] is not None:
- device= valid_blk_names[device]
try:
major= int(parts[0])
try:
major= int(parts[0])