Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 105508
Status: rejected
Priority: 0/
Queue: Quota

People
Owner: Nobody in particular
Requestors: Patrick.Gavin [...] humboldt.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.7.3



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
Please accept my apologies for responding 5 years late. I tried to reproduce the reported issue today, but it works for me: Created dummy PV in a single partition, single LV "VGtest" on top; mkfs.ext4 /dev/vg00/VGtest; mount -o grpquota /dev/vg00/VGtest /mnt; quotacheck -g -i -c /mnt; quotaon -g /mnt; set quota using edquota; finally run perl contrib/test-group.pl: Output is as expected: Using device/argument "/dev/mapper/vg00-VGtest" Query this fs with group id 2001 group usage and limits are 88 (50,100,2020-04-06/10:49) 2 (0,0,0) group quotas set for id 2001