Date: Sun, 22 Jun 1997 17:10:01 -0700 (PDT) From: Tor Egge <Tor.Egge@idi.ntnu.no> To: freebsd-bugs Subject: Re: kern/3688: fsck -p gets transient unexpected inconsistensies Message-ID: <199706230010.RAA29435@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/3688; it has been noted by GNATS. From: Tor Egge <Tor.Egge@idi.ntnu.no> To: Tor.Egge@idi.ntnu.no Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: kern/3688: fsck -p gets transient unexpected inconsistensies Date: Mon, 23 Jun 1997 02:05:59 +0200 > > I wrote: > > > When recovering from a system crash, `fsck -p' in /etc/rc complained about > > unexpected inconsistencies on 3 different filesystems. When running fsck > > manually on each of these filesystems, only the clean flag needed to be set in > > the superblock. The three filesystems were all located on ccd devices. > > This is caused by a superblock for a different filesystem being present > in memory when comparing the superblock with the alternate superblock. :-( Suggested fix: Index: mp_machdep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/mp_machdep.c,v retrieving revision 1.17 diff -c -r1.17 mp_machdep.c *** mp_machdep.c 1997/06/02 10:44:08 1.17 --- mp_machdep.c 1997/06/22 23:50:10 *************** *** 45,50 **** --- 45,51 ---- #include <machine/cpufunc.h> #include <machine/segments.h> #include <machine/smptests.h> /** TEST_DEFAULT_CONFIG, LATE_START */ + #include <machine/specialreg.h> #include <i386/i386/cons.h> /* cngetc() */ *************** *** 429,434 **** --- 430,442 ---- /* start each Application Processor */ start_all_aps(boot_addr); + + /* + * The init process might be started on a different CPU now, + * and the boot CPU might not call prepare_usermode to get + * cr0 correctly configured. Thus we initialize cr0 here. + */ + load_cr0(rcr0() | CR0_WP | CR0_AM); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706230010.RAA29435>