Count all copies of a hardlink when determining CD size for now,

until bug #485167 is fixed.
This commit is contained in:
Jesse Keating 2009-02-11 17:09:04 -08:00
parent 6843a12485
commit 5216793a69
1 changed files with 2 additions and 2 deletions

View File

@ -109,13 +109,13 @@ self.reserve_size : Additional size needed to be reserved on the first disc.
"""Gets the size as reported by du -sL"""
if blocksize:
p = os.popen("du -sL --block-size=1 %s" % path, 'r')
p = os.popen("du -slL --block-size=1 %s" % path, 'r')
thesize = p.read()
p.close()
thesize = long(string.split(thesize)[0])
return thesize
else:
p = os.popen("du -sLh %s" % path, 'r')
p = os.popen("du -slLh %s" % path, 'r')
thesize = p.read()
p.close()
thesize = string.split(thesize)[0]