[horde] Horde and Quotas

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Wed Oct 5 03:08:51 UTC 2011


Quoting Chris <cjdl01 at brokensolstice.com>:

> That was actually in my last message in this thread.

Yeah, but I was lazy and didn't want to search back in the thread. :)

It actually isn't showing as wrapped.  So you shouldn't need the -A1 switch.
In fact, you don't want to use it in your case.

Since your quota returns "/dev/sda3" instead of a mount point, you probably
need to set "translateMountPoint" in your configuration, and also
"translationTable" to match.  The reason for that is that it is probably
getting something like "/home/username" and then greping for "/home" which
doesn't match "/dev/sda3" -- so you need to translate /home to /dev/sda3
for the grep to match...

 From the old module comments, which somehow seem to have gotten removed from
the current version:

      * You must configure this in accounts/config/conf.php.  You must pass at
      * least the path to your quota and grep commands as parameters.  You may
      * also ask for mountpoint translations via the 'translateMountPoint'
      * boolean parameter, and if so you must specify the 'translationTable'
      * to use.  The translationTable is the name of a file to translate a
      * mount point to a device name.  Some common files for this are:
      * /etc/fstab, /etc/mtab, /etc/vfstab.  An example configuration might be
      * something like:
      *
      *   'quota' => array(
      *     'driver' => 'command',
      *       'translateMountPoint' => true,
      *       'translationTable' => '/etc/mtab',
      *     'params' => array(
      *       'quota_path' => '/usr/bin/quota',
      *       'grep_path'  => '/bin/grep'))
      *
      * Note that using the translateMountPoint option requires the File_Fstab
      * PEAR module to be installed on your system!


> There is nothing in the log files regarding quota.  No evidence that  
> it was even fired-off at all.  So, I am a  complete loss.  I did

I was thinking of the IMP quota function which logs an error.  It appears
the block code doesn't log anything.  Not sure why the block code is so
different from the IMP code...  But they diverged at some point...

> everything it said, and I am not even getting any error output --  
> even after setting my log level to DEBUG...

Yeah, it appears unlike the IMP code, the block code doesn't log anything...
Bummer...

> Any help is appreciated.

Try the above to see if translating the device/mounts helps.

> Thanks.
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>



-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

This message is provided "AS IS" without warranty of any kind,
either expressed or implied.  Use this message at your own risk.



More information about the horde mailing list