This package wraps up the vix-disklib library from vmware, and creates binding for python.
Bases: vixDiskLib.vixDiskBase.VixDiskBase
A file IO interface to the vixDiskLib SDK
Returns an iterator that will read from the currently open disk using nblocks
Bases: vixDiskLib.vixBase.VixBase
A file IO interface to the vixDiskLib SDK
Attaches the child disk chain to the parent disk chain. Parent handle is invalid after attaching and child represents the combined disk chain.
Returns a list of available transport modes.
| Returns: | The list of available transport modes |
|---|
The block size.
Copies a disk with proper conversion.
Closes the disk.
Creates a disk.
| Parameters: |
|
|---|
Creates a redo log from a parent disk.
Defragments an existing disk.
Returns a list of available transport modes.
| Returns: | The list of available transport modes |
|---|
Retrieves the metadata for the drive.
Returns the current transport mode. Must be connected.
| Returns: | The transport mode |
|---|
Grows an existing disk, only local disks are grown.
Retrieves information about a disk.
Check a sparse disk for internal consistency.
Open a vmdk for editing or reading (see readonly)
| Parameters: |
|
|---|
Reads a sector range.
| Parameters: |
|
|---|---|
| Returns: | np.ndarray of bytes |
Renames a virtual disk.
Closes and re-opens the current disk.
Writes the metadata to the drive.
| Parameters: | metadata – The metadata to be written to the drive. |
|---|
Shrinks an existing disk, only local disks are shrunk.
Returns the current transport mode. Must be connected.
| Returns: | The transport mode |
|---|
Deletes all extents of the specified disk link. If the path refers to a parent disk, the child (redo log) will be orphaned. Unlinking the child does not affect the parent.
Writes a sector range.
| Parameters: |
|
|---|
Bases: object
Perform a cleanup after an unclean shutdown of an application using vix-disklib.
The location of the vix-disklib configuration file.
Connects the library to the drive using the snapshot reference if provided.
| Parameters: |
|
|---|
Disconnects the library from the drive. This will call :py:meth:VixBase.cleanup.
Frees any memory that we maybe hanging on too.
Initialize the vix-disklib library and setup logging
The location of the vix-disklib libraries.
The read only flag upon connection.
Closes any open connections, cleans up, and then reconnects.
Bases: object
VixDiskLib Credentials to log into a vcenter or ESX server
Bases: object
Disk creation parameters