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

[PATCH 1/2] Verify with fsck after resizing filesystems



Resizing can introduce errors too, so for paranoia, we should
check afterwards
---
 storage/formats/fs.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 59672d2..c4cb1ca 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -394,6 +394,8 @@ class FS(DeviceFormat):
         if rc:
             raise FSResizeError("resize failed: %s" % rc, self.device)
 
+        self.doCheck(intf=intf)
+
         # XXX must be a smarter way to do this
         self._size = self.targetSize
         self.notifyKernel()
-- 
1.6.1


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