コード例 #1
0
 def refresh_mapper_if_needed(primarydevice, SCSIid, currentcapacity):
     if "/dev/mapper/" in primarydevice \
        and get_outdated_size_devices(currentcapacity, [primarydevice]):
         mpath_cli.resize_map(SCSIid)
         if get_outdated_size_devices(currentcapacity, [primarydevice]):
             raise util.SMException("Failed to get the mapper dev to agree "
                                    "on the current capacity.")
コード例 #2
0
ファイル: scsiutil.py プロジェクト: geosharath/sm
 def refresh_mapper_if_needed(primarydevice, SCSIid, currentcapacity):
     if "/dev/mapper/" in primarydevice \
        and get_outdated_size_devices(currentcapacity, [primarydevice]):
         mpath_cli.resize_map(SCSIid)
         if get_outdated_size_devices(currentcapacity, [primarydevice]):
             raise util.SMException("Failed to get the mapper dev to agree "
                                    "on the current capacity.")
コード例 #3
0
ファイル: mpathutil.py プロジェクト: yunleid/sm
def resize(scsi_id):
    mpath_cli.resize_map(scsi_id)