cvs commit: src/usr.sbin/quot quot.c

David Malone dwmalone at
Sat Feb 25 15:50:16 PST 2006

dwmalone    2006-02-25 23:50:15 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/quot        quot.c 
  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

More information about the cvs-src mailing list