Red Hat Bugzilla – Bug 157721
DVD size limit
Last modified: 2007-11-30 17:11:06 EST
Description of problem:
When building DVD images I can not fill the DVD.
Version-Release number of selected component (if applicable):
Long standing problem - all versions ;-)
Add extra packages to the standard distribution.
Steps to Reproduce:
1. Copy standard distribution packages to a work area.
2. Add extra packages and modify configuration files as necessary.
3. Try to build DVD.
DVD fills to 4.2G and overflows to next DVD.
DVD fills to 4.4G.
The problem is caused by an unsigned integer overflow.
The solution is to use a long integer.
The patch ( also fix a syntax error ) :
diff -urN anaconda-10.2.0.47.orig/scripts/splittree.py
--- anaconda-10.2.0.47.orig/scripts/splittree.py 2005-04-01 09:16:56.000000000 +1000
+++ anaconda-10.2.0.47/scripts/splittree.py 2005-04-16 10:17:16.912379403 +1000
@@ -103,14 +103,14 @@
self.logfile = 
- def getSize(seld, path, blocksize=None):
+ def getSize(self, path, blocksize=None):
"""Gets the size as reported by du -s"""
p = os.popen("du -s --block-size=1 %s" % path, 'r')
thesize = p.read()
- thesize = int(string.split(thesize))
+ thesize = long(string.split(thesize))
p = os.popen("du -sh %s" % path, 'r')
Fixed in CVS. Thanks for the patch.