File device using the Gluster backend.
This class represents a file storage backend device stored on Gluster.
Ganeti mounts and unmounts the Gluster devices automatically.
The unique_id for the file device is a (file_driver, file_path)
tuple.
|
__init__(self,
unique_id,
children,
size,
params,
dyn_params,
*args)
Initalizes a file device backend. |
source code
|
|
|
|
|
|
|
Open(self,
force=False,
exclusive=True)
Make the device ready for I/O. |
source code
|
|
|
Close(self)
Notifies that the device will no longer be used for I/O. |
source code
|
|
boolean
|
|
|
|
|
Grow(self,
amount,
dryrun,
backingstore,
excl_stor)
Grow the file |
source code
|
|
boolean
|
|
|
|
string
|
|
Inherited from base.BlockDev :
CombinedSyncStatus ,
Export ,
GetActualDimensions ,
GetActualSpindles ,
GetSyncStatus ,
Import ,
PauseResumeSync ,
SetInfo ,
SetSyncParams ,
Snapshot ,
__repr__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|