total space = (used quota) + (to be expunged)?

Adam Tauno Williams awilliam at whitemice.org
Tue Feb 7 08:51:36 EST 2012


Quoting Andre Felipe Machado <andremachado at techforce.com.br>:

> Hello
> After reading some archived list msg [1], and database formats doc (quotas
> topic)[2], I realized that there is not a "high level" cyrus command  
> to display
> total disk/partition space actually used at a Cyrus imap backend.
> In order to get exact (approximated when single instance store is  
> enabled) to be
> expunged messages space should a du / df be used ?
> df_used_blocks - used_quota = space_to_be_expunged

<https://bugzilla.cyrusimap.org/show_bug.cgi?id=3562> is possibly related

> Is there a better approach (more exact, faster, lower system load)?
> What is the correct way to account for the single instance store effect?
> df or du -L ?
> (du -L)-(du)?

df/du are probably your only options currently; yea, they suck.



More information about the Info-cyrus mailing list