WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

DiskUsage will return -1 if value too large

User erik.svanberg
Date 6/18/2007 5:25 am
Severity Cosmetic (misspelling, formatting problems)
Version WebGUI 7.3.18
Views 166
Rating 0    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
erik.svanberg

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

/Erik 



Back to Top
Rate [
|
]
 
 
colink

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



Back to Top
Rate [
|
]
 
 
erik.svanberg

[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 



Back to Top
Rate [
|
]
 
 
colink

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

 



Back to Top
Rate [
|
]
 
 
erik.svanberg

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 



Attached Files
Back to Top
Rate [
|
]
 
 
colink

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

Fixed in 7.3.20. 

 



Back to Top
Rate [
|
]