]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check to make sure that the fs_sblockloc field was properly updated
authorKirk McKusick <mckusick@FreeBSD.org>
Fri, 29 Nov 2002 19:20:15 +0000 (19:20 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Fri, 29 Nov 2002 19:20:15 +0000 (19:20 +0000)
commitfa5d33e2428ed31454a70aff97f562084f304435
tree4acdcf02efa2b36dc51f1fde95a0473d49d4a99a
parent279062fae149e105dae7c28b638d49ba5715725d
Check to make sure that the fs_sblockloc field was properly updated
before using it to write the superblock. This is to guard against
accidentally trashing the disklabel if the superblock format missed
being upgraded by the new kernel.

Reported by: Sam Leffler <sam@errno.com>
Sponsored by:   DARPA & NAI Labs.
Approved by: Murray Stokely <murray@FreeBSD.org>
sys/ufs/ffs/ffs_vfsops.c