__init__(self,
name,
config=None,
size=None,
wwn=None)
(Constructor)
|
|
- Parameters:
name (string) - The name of the UserBackedStorageObject.
dev (string) - The path to the backend block device to be used.
-
Example: dev="/dev/sda".
-
The only device type that is accepted TYPE_DISK. For
other device types, use pscsi.
size (int) - The size of the device to create, in bytes.
config (string) - user-handler-specific config string.
-
e.g. "rbd/machine1@snap4"
- Returns:
- A UserBackedStorageObject object.
- Overrides:
node.CFSNode.__init__
|