class documentation
class DevCacheManager(object):
Simple class for managing a cache of block device information.
Class Method |
|
Remove data for a dev_path. |
Class Method |
|
Updates the cache information for a given device. |
Class Method | _ |
Converts a /dev/name path to the cache file name. |
Constant | _DEV |
Undocumented |
Remove data for a dev_path.
This is just a wrapper over utils.io.RemoveFile
with a converted path name and logging.
Parameters | |
dev | the pathname of the device |
Returns | |
None | Undocumented |
Updates the cache information for a given device.
Parameters | |
dev | the pathname of the device |
owner:str | the owner (instance name) of the device |
on | whether this is the primary node nor not |
iv | the instance-visible name of the device, as in objects.Disk.iv_name |
Returns | |
None | Undocumented |