Re: [vchkpw] Re: vusagec math

2010-12-06 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/05/2010 06:25 PM, Eric Shubert wrote:
 Matt,
 I hope you've taken the block size into consideration for all files, not
 just those less than the block size. The unused space in the last block
 of all messages can add up. ;)

Correct.  The usage is based on multiples of the block size.  Feel
free to check the code and see if I've made any errors.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz9KLIACgkQIwet2/rgZyx93gCfcwLvYRnxUi8lRg/MAhwdVwSQ
TSAAnjIlOagWs/wR+2DXEUJktzR+EvJh
=LPKx
-END PGP SIGNATURE-


[vchkpw] Re: vusagec math

2010-12-05 Thread Eric Shubert

On 11/30/2010 01:34 PM, Matt Brookings wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/30/2010 03:31 AM, Igor Smitran wrote:

I would like to se usage based on file size on disk. When i see domain
quota usage i need to know how much disk space is that.
After all, user is using that space, i am not able to give it to someone
else...


Added block usage calculation to the vpopmail usage daemon in 5.5.
You can find the change in Subversion.

Please note, if you have configured the vusage daemon to save a
database file, you will need to delete the database file or the
calculations will be off when it starts up with the block size
configuration.
- --
/*
 Matt Brookingsm...@inter7.comGnuPG Key FAE0672C
 Software developer Systems technician
 Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz1X94ACgkQIwet2/rgZywZFwCggw3iYar24JLvwiYFel1AZSeE
tfsAnAioGn8GKnPIOq/8VXikyKPt8xcN
=p/Xw
-END PGP SIGNATURE-



Matt,
I hope you've taken the block size into consideration for all files, not 
just those less than the block size. The unused space in the last block 
of all messages can add up. ;)


Thanks for you work on vpopmail.
--
-Eric 'shubes'


!DSPAM:4cfc2d9c32711289418291!



Re: [vchkpw] Re: vusagec math

2010-11-30 Thread Igor Smitran
I would like to se usage based on file size on disk. When i see domain 
quota usage i need to know how much disk space is that.
After all, user is using that space, i am not able to give it to someone 
else...


vpopmail 5.4.32

Igor

On 11/29/2010 04:02 PM, Eric Shubert wrote:

So, which do you consider 'real' size? ;)

FWIW, I'd (also) like to see usage based on what's actually used. I'm 
not sure that's practical to do though, and can see where it'd be a 
bit more difficult to implement.


BTW, which version of vpopmail are you running?




!DSPAM:4cf4c47132716179113766!



Re: [vchkpw] Re: vusagec math

2010-11-30 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/30/2010 03:31 AM, Igor Smitran wrote:
 I would like to se usage based on file size on disk. When i see domain
 quota usage i need to know how much disk space is that.
 After all, user is using that space, i am not able to give it to someone
 else...

Added block usage calculation to the vpopmail usage daemon in 5.5.
You can find the change in Subversion.

Please note, if you have configured the vusage daemon to save a
database file, you will need to delete the database file or the
calculations will be off when it starts up with the block size
configuration.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz1X94ACgkQIwet2/rgZywZFwCggw3iYar24JLvwiYFel1AZSeE
tfsAnAioGn8GKnPIOq/8VXikyKPt8xcN
=p/Xw
-END PGP SIGNATURE-


[vchkpw] Re: vusagec math

2010-11-29 Thread Eric Shubert

On 11/29/2010 03:45 AM, Igor Smitran wrote:

I've noticed that vusagec calculates space based on file size, but it is
prone to errors in case it needs to calculate many emails that are
smaller than block size.
In case file size is smaller than block size file system will use e.g.
4KB for that file and vusagec will calculate real size. In my example
file system is giving me 230 GB used space and vusagec gives me 100GB
used space. It is huge error in my opinion.

Igor






So, which do you consider 'real' size? ;)

FWIW, I'd (also) like to see usage based on what's actually used. I'm 
not sure that's practical to do though, and can see where it'd be a bit 
more difficult to implement.


BTW, which version of vpopmail are you running?

--
-Eric 'shubes'


!DSPAM:4cf3c0ab32711432613264!