To facilitate the task, we change the comparison function so that users
with equal filesystem usage are sorted by UID, and add an undocumented
option that prevents quot from replacing numerical UIDs with names. We
also switch from getfsfile(3) to getmntpoint(3) so the first line is
identical regardless of whether we pass quot a mountpoint or a device.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| usr.sbin/quot/tests/quot_test.sh | ||
|---|---|---|
| 51–53 | Does three syncs provide any guarantee that one or two does not? | |
| usr.sbin/quot/tests/quot_test.sh | ||
|---|---|---|
| 51–53 | I don't think so, sync is asynchronous. More reliable would be to unmount the filesystem, or update the mount to make it read-only. | |
| usr.sbin/quot/tests/quot_test.sh | ||
|---|---|---|
| 51–53 | Empirically, a single sync was not enough for the test to succeed. It is possible that a single sync plus a brief sleep would have done the trick, but I find the traditional triple sync more poetic. | |