Count all copies of a hardlink when determining CD size for now,
until bug #485167 is fixed.
This commit is contained in:
parent
6843a12485
commit
5216793a69
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user