Filesystem management functions.
Format given devices with a filesystem. If multiple devices are provided, the format will span over all these devices (currently supported only for btrfs).
Parameters: |
|
---|---|
Return type: | LMIInstance/CIM_LocalFileSystem |
Remove given filesystem or data format from all devices, where it resides.
Parameters: | fmt (LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat) – Format to delete. |
---|
Return short text description of the format, ready for printing.
Parameters: | device (LMIInstance/CIM_StorageExtent or string) – Device to describe. |
---|---|
Return type: | string |
Return short text description of the format, ready for printing.
Parameters: | fmt (LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat) – Format to describe. |
---|---|
Return type: | string |
Return filesystem or data format, which is on given device.
Parameters: |
|
---|---|
Return type: | LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat |
Retrieve list of filesystems on given devices. If no devices are given, all formats on all devices are returned.
Parameters: |
|
---|---|
Return type: | list of LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat |
Convert string with name of device to LMIInstance of the format on the device.
If LMIInstance is provided, nothing is done and the instance is just returned. If a string is given, appropriate LMIInstance is looked up and returned.
This functions throws an error when the device cannot be found.
Parameters: | fmt (LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat or string) – The format. |
---|---|
Retval : | LMIInstance/CIM_LocalFileSystem or LMIInstance/LMI_DataFormat |