|
This function extracts the quota definition from either a string or a
list and returns a dictionary of detected values, which are directly
suitable for passing on to the set_quota operation.
Detected quita formats (given in YAML syntax):
-
256M - hard block size limit is set to 256M
-
[256M] - hard block size limit is set to 256M
-
[128M, 256M] - soft block limit 128M, hard limit 256M
-
[128M, 256M, 2000, 4000] - soft block limit 128M, hard limit 256M,
soft inode limit 2000, hard limit 4000
- Parameters:
limits - The limits' definition (string or list of strings)
- Returns:
- Dictionary of detected values
|