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

[PATCH] Perform ext3->ext4 filesystem migration if ext4migrate is given (#484330).



---
 fsset.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/fsset.py b/fsset.py
index 56eaf21..d1d9726 100644
--- a/fsset.py
+++ b/fsset.py
@@ -720,6 +720,13 @@ class ext3FileSystem(extFileSystem):
             raise RuntimeError, ("Trying to migrate ext3 to something other "
                                  "than ext4")
 
+        rc = iutil.execWithRedirect("tune2fs", ["-O", "extents", devicePath],
+                                    stdout = "/dev/tty5",
+                                    stderr = "/dev/tty5", searchPath = 1)
+
+        if rc:
+            raise SystemError
+
 fileSystemTypeRegister(ext3FileSystem())
 
 class ext4FileSystem(extFileSystem):
-- 
1.6.0.3


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