Bug 1306195 - repquota on xfs doesn't report LDAP users if sssd is used.
repquota on xfs doesn't report LDAP users if sssd is used.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: quota (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Petr Pisar
Fedora Extras Quality Assurance
https://sourceforge.net/p/linuxquota/...
: FutureFeature, Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-10 04:52 EST by Petr Pisar
Modified: 2016-02-26 03:36 EST (History)
2 users (show)

See Also:
Fixed In Version: quota-4.03-3.fc25
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-26 03:36:00 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Pisar 2016-02-10 04:52:20 EST
If passwd database is remote, enumerating all users is expensive. Then repquota tool cannot list quota entries for filesystems that do not export list of users with quota in use. That's the case of XFS.

Recently, Linux gained new Q_XGETNEXTQUOTA and Q_GETNEXTQUOTA qutoactls to enumerate file system users with quota in use. Once this kernel interface appears in Fedora, we can extend user space quota tools to utilize the new feature.

It has already been implemented in upstream with commits:

commit 7367f5d511ec4555fbb7a87c1c1853fd4fd01712
Author: Jan Kara <jack@suse.cz>
Date:   Tue Jan 26 14:06:59 2016 +0100

    Add support for scanning using Q_XGETNEXTQUOTA
    
    Add support for scanning of all available quota structures using
    Q_XGETNEXTQUOTA quotactl.
    
    Signed-off-by: Jan Kara <jack@suse.cz>

commit 85687833434d50e3f5fd4b849e543eb505bf5a20
Author: Jan Kara <jack@suse.cz>
Date:   Tue Jan 26 13:10:59 2016 +0100

    Scan dquots using Q_GETNEXTQUOTA
    
    Check for new kernel quotactl Q_GETNEXTQUOTA and if available use it for
    scanning all dquot structures.
    
    Signed-off-by: Jan Kara <jack@suse.cz>
Comment 1 Petr Pisar 2016-02-26 03:36:00 EST
This feature requires a new kernel interface that will be available probably in linux-4.6.

Note You need to log in before you can comment on or make changes to this bug.