mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
1dfb50585c
The new Q_GETNEXTQUOTA quotactl (not yet merged) is designed to take an ID as input ala Q_GETQUOTA, and return the quota for the next active ID >= the input ID. This lets us quickly iterate over all existing quotas by leveraging the kernel's knowledge of which quotas are allocated and active. The test contains a new helper binary, test-nextquota, which tests both the "vfs" and "xfs" versions of the quotactl. It accepts an ID, and outputs the returned ID, ihard, and isoft values for that quota. It doesn't return block information simply because that can vary depending on fs, block size, etc, and we want something very consistent as output, for verifiation. The test harness sets quotas for 100 random IDs, remounts, and uses these quotactls to iterate over all the IDs we set, using the test binary, making sure we get back what we expect. Not the prettiest thing, but it works! Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
3 lines
43 B
Plaintext
3 lines
43 B
Plaintext
QA output created by 244
|
|
Launch all quotas
|