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.")
def resize(scsi_id): mpath_cli.resize_map(scsi_id)