def get_disk_size(path, format=None):
 size = images.qemu_img_info(path, format).virtual_size
 return int(size)

def get_disk_size ( path , format = None ) : size = images . qemu_img_info ( path , format ) . virtual_size return int ( size )
get the size of a disk image .