[PATCH] Don't attempt to get the size of a filesystem unless it's supported (#540598).

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

 



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.
---
 storage/formats/fs.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 12f624f..63a116b 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
 
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux