From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 4 06:54:30 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C91816A402 for ; Sun, 4 Feb 2007 06:54:30 +0000 (UTC) (envelope-from mpp@mppsystems.com) Received: from mail.mppsystems.com (mppsystems.com [208.210.148.205]) by mx1.freebsd.org (Postfix) with ESMTP id 0658113C49D for ; Sun, 4 Feb 2007 06:54:29 +0000 (UTC) (envelope-from mpp@mppsystems.com) Received: by mail.mppsystems.com (Postfix, from userid 1000) id 54460115E0; Sun, 4 Feb 2007 00:54:29 -0600 (CST) Date: Sun, 4 Feb 2007 00:54:29 -0600 From: Mike Pritchard To: freebsd-hackers@freebsd.org Message-ID: <20070204065428.GA1731@mail.mppsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Mailman-Approved-At: Sun, 04 Feb 2007 12:29:11 +0000 Subject: Request for feedback on 2 new quota command options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 06:54:30 -0000 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)