[imp] Quota driver Command
mtecles at biof.ufrj.br
mtecles at biof.ufrj.br
Wed Jul 6 17:56:27 UTC 2011
Two problems with the quota driver "Command.php" (IMP 4 and 5).
Problem 1.
The use of volumes generates long names for the partitions, wich
wraps the response line of the quota command (Debian 6). As the
result, IMP displays "No limit". Horde logs:
NOTICE: HORDE [imp] PHP ERROR: Undefined offset: 2 [pid 4207 on line
87 of "/var/www/horde/imp/lib/Quota/Command.php"]
NOTICE: HORDE [imp] PHP ERROR: Undefined offset: 1 [pid 4207 on line
88 of "/var/www/horde/imp/lib/Quota/Command.php"]
Sugestion for the quota driver Command.php:
Use "quota -uw" in the function getQuota. That is:
$cmdline = $this->_params['quota_path'] . ' -uw ' ...
instead of
$cmdline = $this->_params['quota_path'] . ' -u ' ...
The w option avoids wrapping.
Problem 2.
Command drive fails to determine the disk block size and IMP displays
wrong numbers. Using
$blocksize = 1024;
solved the problem for me.
Mauricio
--------------------------------------------------------
Mauricio J. T. Tecles
Instituto de Biofísica Carlos Chagas Filho - UFRJ
Edifício do Centro de Ciências da Saúde, Bloco G
Av. Carlos Chagas Filho, 373
Cidade Universitária, Ilha do Fundão
Rio de Janeiro, RJ
Brasil
21941-902
Telefone: 55 21 2562-6544
FAX: 55 21 2280-8193
mtecles at biof.ufrj.br
More information about the imp
mailing list