[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#420241: quota: error while getting quota: Success



Hello,

I've got same problem. But I've do futher investigations. I tried both
kernels:

ii  linux-image-2.6.18-4-amd64    2.6.18.dfsg.1-12etch2           Linux 2.6.18 image on AMD64
(from backports)
ii  linux-image-2.6.21-1-amd64    2.6.21-4~bpo.1                  Linux 2.6.21 image on AMD64

I running etch 4.0, 64-bit kernel.

Edquota segfaults, quota command results:

# quota -u 1500
quota: error while getting quota from /dev/sda7 for #1500 (id 1500): Success

I wrote simple program in perl to setup and check quota (using package
libquota-perl):

#v+
#!/usr/bin/perl

use Quota;
use Data::Dumper;

my $dev = Quota::getqcarg('/var/www');
Quota::setqlim($dev, 1500, 1000, 1000, 0, 0);
my @quota = Quota::query($dev, 1500);
print Dumper(\@quota);
#v-

And i get:
# perl q.pl 
$VAR1 = [
          0,
          1000,
          1000,
          0,
          0,
          0,
          0,
          0
        ];

Which is good result. So i think, that problem exists in quota/edquota tools, not in kernel.

-- 
Piotr 'QuakeR' Gasidło, BOFH @ pandora.barbara.eu.org
############## sending lusers to /dev/null since 1998
##### Waiting for tomorrow, for a little ray of light
### Waiting for tomorrow just to see your smile again

Attachment: signature.asc
Description: Digital signature


Reply to: