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

Re: [PATCH] Require a format to have a mountpoint before testing for RO (#565879).



On 02/16/2010 05:47 PM, Chris Lumens wrote:
Otherwise, we traceback trying to mount /mnt/sysimage/None or something
stupid like that.
---
  storage/__init__.py |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index e23e826..4e3bbf7 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1734,6 +1734,7 @@ class FSSet(object):
          space = []
          for device in self.devices:
              if not device.format.mountable or \
+               not device.format.mountpoint or \
                 not device.format.status:
                  continue


Ack.


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