From owner-cvs-all Mon Apr 23 17:37:21 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D4CC637B424; Mon, 23 Apr 2001 17:37:17 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3O0bHC16393; Mon, 23 Apr 2001 17:37:17 -0700 (PDT) (envelope-from iedowse) Message-Id: <200104240037.f3O0bHC16393@freefall.freebsd.org> From: Ian Dowse Date: Mon, 23 Apr 2001 17:37:17 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_vfsops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/04/23 17:37:17 PDT Modified files: sys/ufs/ffs ffs_vfsops.c Log: Pre-dirpref versions of fsck may zero out the new superblock fields fs_contigdirs, fs_avgfilesize and fs_avgfpdir. This could cause panics if these fields were zeroed while a filesystem was mounted read-only, and then remounted read-write. Add code to ffs_reload() which copies the fs_contigdirs pointer from the previous superblock, and reinitialises fs_avgf* if necessary. Reviewed by: mckusick Revision Changes Path 1.148 +7 -1 src/sys/ufs/ffs/ffs_vfsops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message