plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
DiskUsage will return -1 if value too large  (#3190)
Issue

Diskusage will return -1 if value too large. To bypass I can set --blockSize=1024 but still the value shouldnt have this limit?

/Erik 

Solution Summary
Comments
perlDreamer
0
6/26/2007 5:58 pm

Could you please attach a sample report from diskUsage.pl with this problem? 

erik.svanberg
0
6/27/2007 2:49 am

[wre@edea lib]$ /data/wre/prereqs/perl/bin/perl ../sbin/diskUsage.pl --configFile=our.server.com.conf --assetUrl=projects/documents/sp3/software --summary

Starting 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/ --summary

Starting 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=1024

Starting 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=1024

Starting 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=1024

Starting with asset url projects/documents/...

Total Space used: 5372589 Kb
 

 

/Erik 

perlDreamer
0
6/28/2007 4:29 pm

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

 

erik.svanberg
0
6/29/2007 2:44 am

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 

perlDreamer
0
6/29/2007 12:01 pm

You know, it's much easier to overflow a 32-bit machine.

Fixed in 7.3.20. 

 

Details
Ticket Status Closed  
Rating0.0 
Submitted Byerik.svanberg 
Date Submitted2007-06-18 
Assigned To unassigned  
Date Assigned2010-09-02 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in?  
WebGUI / WRE Version 7.3.18  
URLbugs/tracker/diskusage-will-return--1-if-value-too-large
Keywords
Related Files
Ticket History
© 2010 Plain Black Corporation | All Rights Reserved