diff options
-rw-r--r-- | fsset.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1248,10 +1248,12 @@ class FileSystemSet: def filesystemSpace(self, chroot='/'): space = [] - # XXX limit to ext[23] etc? for entry in self.entries: if not entry.isMounted(): continue + # we can't put swap files on swap partitions; that's nonsense + if entry.mountpoint == "swap": + continue path = "%s/%s" % (chroot, entry.mountpoint) try: space.append((entry.mountpoint, isys.fsSpaceAvailable(path))) |