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

Re: [PATCH] Don't traceback from failure finding minimum fs size. (#494070)



Looks ok,

Regards,

Hans


On 04/04/2009 07:10 AM, David Lehman wrote:
---
  storage/formats/fs.py |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 8b54a82..0e155eb 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -741,7 +741,9 @@ class Ext2FS(FS):
                  size = int(minSize) / 1024.0

              if size is None:
-                raise FSError("failed to get minimum fs size")
+                log.warning("failed to get minimum size for %s filesystem "
+                            "on %s" % (self.type, self.device))
+                size = self._minSize

          return size



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