Date: Sat, 25 Feb 2006 23:50:15 +0000 (UTC) From: David Malone <dwmalone@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/quot quot.c Message-ID: <200602252350.k1PNoFSb041706@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602252350.k1PNoFSb041706>
