Request for feedback on 2 new quota command options

Mike Pritchard mpp at mail.mppsystems.com
Sun Feb 4 06:54:30 UTC 2007


I'd like to add 2 new options to the quota command, and would
like to see if there are any comments before I commit them.

The new options are:

-f filesystem
    Only display information for the specified file system.

-r
    Display the information as it appears in the quota structure,
    without any block translation and display the grace time
    values in more detail.  E.g. instead of saying 6days for the
    time left, the actual time_t data and the time in ctime(3) format
    will be displayed.

Both options have been useful in helping debug quota problems.

Sample output from "quota -r -f /sandbox -u quotatest":

Raw user quota information for id 1016 on /sandbox
block hard limit:     1800
block soft limit:     1200
current block count:  6752
i-node hard limit:    11
i-node soft limit:    6
current i-node count: 5
block grace time:     1171080257 Fri Feb  9 22:04:17 2007
i-node grace time:    0

The patch is available at:

http://people.freebsd.org/~mpp/quota.patch

-Mike
-- 
Mike Pritchard
mpp @ mppsystems.com or mpp @ FreeBSD.org
"If tyranny and oppression come to this land, it will be in the guise
of fighting a foreign enemy."  - James Madison (1787)



More information about the freebsd-hackers mailing list