From owner-cvs-all@FreeBSD.ORG Sat Feb 25 23:50:15 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D50EF16A420; Sat, 25 Feb 2006 23:50:15 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A725143D45; Sat, 25 Feb 2006 23:50:15 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1PNoFfQ041707; Sat, 25 Feb 2006 23:50:15 GMT (envelope-from dwmalone@repoman.freebsd.org) Received: (from dwmalone@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1PNoFSb041706; Sat, 25 Feb 2006 23:50:15 GMT (envelope-from dwmalone) Message-Id: <200602252350.k1PNoFSb041706@repoman.freebsd.org> From: David Malone Date: Sat, 25 Feb 2006 23:50:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/quot quot.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 23:50:16 -0000 dwmalone 2006-02-25 23:50:15 UTC FreeBSD src repository Modified files: usr.sbin/quot quot.c Log: The quot command expected all inodes contents to be valid, however on UFS2 inodes are initialised as they are needed, rather than at newfs time. When quot encountered these inodes it could produce crazy results. Now, on UFS2 filesystems, quot's get_inode function will bzero unallicated inodes before passing them back to a caller. This is how UFS2 initialises new inodes, so this should work OK. Also, while I'm here, make quot exit with an error if it finds inodes of an unknown type. This should help catch future problems of this type. Reviewed by: iedowse MFC after: 1 week Revision Changes Path 1.24 +31 -3 src/usr.sbin/quot/quot.c