[PATCH 06/10] getDirSize should stay on a single filesystem, not look at submounts.
Chris Lumens
clumens at redhat.com
Tue Aug 28 18:54:01 UTC 2012
---
pyanaconda/iutil.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index fd0b985..dea9ab8 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -432,6 +432,8 @@ def getDirSize(dir):
curpath = '%s/%s' % (dir, f)
sinfo = os.lstat(curpath)
if stat.S_ISDIR(sinfo[stat.ST_MODE]):
+ if os.path.ismount(curpath):
+ continue
if mydev == sinfo[stat.ST_DEV]:
dsize += getSubdirSize(curpath)
elif stat.S_ISREG(sinfo[stat.ST_MODE]):
--
1.7.11.2
More information about the anaconda-patches
mailing list