[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 5/5] Get existing fs size for xfs.



---
 storage/formats/fs.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 7b70b49..c8b9b4a 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1095,6 +1095,9 @@ class XFS(FS):
     _dump = True
     _check = True
     _packages = ["xfsprogs"]
+    _infofs = "xfs_db"
+    _defaultInfoOptions = "-c \"sb 0\" -c \"p dblocks\" -c \"p blocksize\""
+    _existingSizeFields = ["dblocks =", "blocksize ="]
 
 register_device_format(XFS)
 
-- 
1.6.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]