Bug 1306195

Summary: repquota on xfs doesn't report LDAP users if sssd is used.
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: quotaAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ovasik, ppisar
Target Milestone: ---Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://sourceforge.net/p/linuxquota/bugs/91/
Whiteboard:
Fixed In Version: quota-4.03-3.fc25 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-26 08:36:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Pisar 2016-02-10 09:52:20 UTC
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>
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>

commit 85687833434d50e3f5fd4b849e543eb505bf5a20
Author: Jan Kara <jack>
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>

Comment 1 Petr Pisar 2016-02-26 08:36:00 UTC
This feature requires a new kernel interface that will be available probably in linux-4.6.