Subject: | Quota::query errors with no quota for this user when querying a group quota |
Date: | Fri, 26 Jun 2015 09:24:47 -0700 |
To: | bug-Quota [...] rt.cpan.org |
From: | Patrick Gavin <Patrick.Gavin [...] humboldt.edu> |
Hi-
I'm having problems with the Quota module working with group quotas.
I'm running RHEL6.6- perl v5.10.1 built for x86_64-linux-thread-multi
The file system in question is ext4 and only has group quotas enabled.
This is a samba server, and users and groups are mostly managed through winbind. There are a handful of local accounts.
The Quota module was installed through mcpan. I have installed 1.7.2 but 1.7.1 also has this behavior.
I am able to set group quotas with edquota -g, and can view them with quota -g or repquota -g.
However, when I try to query with Quota::query($dev,$gid,1) I get an error that there is no quota for the user.
This problem occurs for both winbind and local accounts.
The contrib/test-group.pl script also exhibits the same behavior:
[root@foo contrib]# ./test-group.pl
Using device/argument "/dev/mapper/VGGroup-LVGroups"
Query this fs with group id 16687
Quota::query(/dev/mapper/VGGroup-LVGroups,16687,1): No quota for this user
[root@foo contrib]# quota -g 16687
Disk quotas for group foogroup (gid 16687):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/VGGroup-LVGroups
4 10000 10000 1 30 60
Any help you can provide on this would be appreciated.
Thanks,
--
Patrick Gavin
Systems Administrator
Central IT Systems & Services
Humboldt State University
Email: Patrick.Gavin@humboldt.edu