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

[PATCH 2/5] Get existing fs size for ext2, ext3, and ext4.



---
 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 c42cf22..539a344 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -836,6 +836,9 @@ class Ext2FS(FS):
     _migrationTarget = "ext3"
     _migratefs = "tune2fs"
     _defaultMigrateOptions = ["-j"]
+    _infofs = "dumpe2fs"
+    _defaultInfoOptions = ["-h"]
+    _existingSizeFields = ["Block count:", "Block size:"]
 
     def doMigrate(self, intf=None):
         FS.doMigrate(self, intf=intf)
-- 
1.6.2.2


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