-
class File(path, mode=None)
Bases: object
-
close(*args, **kwargs)
-
chown(path, owner)
-
copy_image(src, dest)
-
create_cow_image(backing_file, path)
-
create_image(disk_format, path, size)
-
create_lvm_image(vg, lv, size, sparse=False)
-
create_snapshot(disk_path, snapshot_name)
-
delete_snapshot(disk_path, snapshot_name)
-
fetch_image(context, target, image_id, user_id, project_id)
-
file_delete(path)
-
file_open(path, mode=None)
-
find_disk(virt_dom)
-
get_disk_backing_file(path)
-
get_disk_type(path)
-
get_fc_hbas()
-
get_fc_hbas_info()
-
get_fc_wwnns()
-
get_fc_wwpns()
-
get_fs_info(path)
-
get_instance_path(instance, forceold=False, relative=False)
-
get_iscsi_initiator()
-
load_file(path)
-
logical_volume_info(path)
-
pick_disk_driver_name(is_block_dev=False)
-
remove_logical_volumes(*paths)
-
resize2fs(path)
-
volume_group_free_space(vg)
-
write_to_file(path, contents, umask=None)