summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-11-24 11:26:49 -0500
committerChris Lumens <clumens@redhat.com>2009-11-24 11:35:01 -0500
commit514cec57b099fdfb5a7fa82cd451355a6fe8ab1c (patch)
tree8e3c4b31d693e1d4c8748e6ff75e9d65db56ea36 /storage/formats/fs.py
parent011e835f0350c8bd3a9de6720be0792844e1eaf4 (diff)
downloadanaconda-514cec57b099fdfb5a7fa82cd451355a6fe8ab1c.tar.gz
anaconda-514cec57b099fdfb5a7fa82cd451355a6fe8ab1c.tar.xz
anaconda-514cec57b099fdfb5a7fa82cd451355a6fe8ab1c.zip
Don't attempt to get the size of a filesystem unless it's supported (#540598).
We're not guaranteed to have the _infofs program on every platform, so we need to make sure the filesystem is supported before making an attempt. For now this is only showing up on NTFS volumes on ppc, but it's possible to come up in other places.
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r--storage/formats/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 12f624f22..63a116b74 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -150,7 +150,7 @@ class FS(DeviceFormat):
self._size = kwargs.get("size", 0)
self._minInstanceSize = None # min size of this FS instance
self._mountpoint = None # the current mountpoint when mounted
- if self.exists:
+ if self.exists and self.supported:
self._size = self._getExistingSize()
foo = self.minSize # force calculation of minimum size