freebsd-dev/sys/ufs
mckusick 9134029814 Change the field used to test whether the superblock has been updated
from the filesystem size field to the filesystem maximum blocksize
field. The problem is that older versions of growfs updated only the
new size field and not the old size field. This resulted in the old
(smaller) size field being copied up to the new size field which
caused the filesystem to appear to fsck to be badly trashed.

This also adds a sanity check to ensure that the superblock is not
being updated when the filesystem is mounted read-only. Obviously
such an update should never happen.

Reported by:	Nate Lawson <nate@root.org>
Sponsored by:   DARPA & NAI Labs.
2003-02-25 23:21:08 +00:00
..
ffs Change the field used to test whether the superblock has been updated 2003-02-25 23:21:08 +00:00
ufs Expand the reference count on struct dquot to 32 bits. 2003-02-24 08:49:59 +00:00