-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Linux kernel supports feature that allows for fast and efficient querying of all quota in the filesystem.
It's Q_XGETNEXTQUOTA ioctl.
This is feature request about adding support for it.
As simple API like:
(uid, bcount, bsoft, bhard, btime, icount, isoft, ihard, itime) = qObj.querynext(uid [,grpquota=1] [,prjquota=1])
or more complicated like
queryrange(uid, uid_last=False,...)
returning dictionary of uids with their quota tuples (or something like that)
For systems that don't support this feature it could be emulated by iterating from uid to (uid_t)-1 until found but... that can be a lot (if for example there is no single uid with quotas above our called uid). Or just FsQuota.error(ENOTSUP).
Metadata
Metadata
Assignees
Labels
No labels