Diskusage will return -1 if value too large. To bypass I can set --blockSize=1024 but still the value shouldnt have this limit?
/Erik
Could you please attach a sample report from diskUsage.pl with this problem?
[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3/software --summaryStarting with asset url projects/documents/sp3/software...Total Space used: 18654631 bytes[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3 --summary Starting with asset url projects/documents/sp3...Total Space used: -169749512 bytes[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/ --summaryStarting with asset url projects/documents/...Total Space used: -1 bytes####################################
doing same thing with blockSize set:
[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3/software --summary --blockSize=1024Starting with asset url projects/documents/sp3/software...Total Space used: 18217 Kb[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3 --summary --blockSize=1024Starting with asset url projects/documents/sp3...Total Space used: 4028532 Kb[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/ --summary --blockSize=1024Starting with asset url projects/documents/...Total Space used: 5372589 Kb
Erik.
Could you please redo the diskUsage report for one of the URLs that returns a negative number, except omit the --summary so I can watch it overflow. Just attach the report to the Post instead of pasting in the data.
Unless something strange is happening, there's no reason for perl to overflow any integer that small.
/data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3
I guess there is a limit at 4,2 billion (4294967295 in mysql) and this is 5,5 billion?I attach the output - though I can not provide name of the files since it has secrecy limitations.
BR / Erik
You know, it's much easier to overflow a 32-bit machine.
Fixed in 7.3.20.