Change ownership of file or directory
| Parameters: |
|
|---|
Copy a disk image
| Parameters: |
|
|---|
Create COW image
Creates a COW image with the given backing file
| Parameters: |
|
|---|
Create a disk image
| Parameters: |
|
|---|
Create a snapshot in a disk image
| Parameters: |
|
|---|
Create a snapshot in a disk image
| Parameters: |
|
|---|
Create a directory (and any ancestor directories required)
| Parameters: | path – Directory to create |
|---|
Extract a named snapshot from a disk image
| Parameters: |
|
|---|
Grab image
Delete (unlink) file
Open file
see built-in file() documentation for more details
Get the backing file of a disk image
| Parameters: | path – Path to the disk image |
|---|---|
| Returns: | a path to the image’s backing store |
Get the (virtual) size of a disk image
| Parameters: | path – Path to the disk image |
|---|---|
| Returns: | Size (in bytes) of the given disk image as it would be seen by a virtual machine. |
Get free/used/total space info for a filesystem
| Parameters: | path – Any dirent on the filesystem | ||||||
|---|---|---|---|---|---|---|---|
| Returns: | A dict containing:
|
Get iscsi initiator name for this machine
Find an available port
| Parameters: |
|
|---|
Read contents of file
| Parameters: | path – File to read |
|---|
Format a file or block device
| Parameters: |
|
|---|
Write the given contents to a file
| Parameters: |
|
|---|