From 202167bebbb9b8c47194ffc285b97cbe34e7cf8c Mon Sep 17 00:00:00 2001 From: cgd <cgd@NetBSD.org> Date: Fri, 15 Oct 1993 15:15:25 +0000 Subject: [PATCH] try again to keep it from rebooting endlessly --- sbin/fsck/main.c | 4 +++- sbin/fsck_ffs/main.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sbin/fsck/main.c b/sbin/fsck/main.c index aa50e61dea78..b1c529a3da53 100644 --- a/sbin/fsck/main.c +++ b/sbin/fsck/main.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/ -static char rcsid[] = "$Id: main.c,v 1.9 1993/10/06 00:52:07 cgd Exp $"; +static char rcsid[] = "$Id: main.c,v 1.10 1993/10/15 15:15:25 cgd Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -281,11 +281,13 @@ checkfilesys(filesys, mntpt, auxdata, child) zlnhead = (struct zlncnt *)0; duplist = (struct dups *)0; inocleanup(); +#ifdef notyet if (!clean && !nflag && fswritefd != -1) { sblock.fs_state = FSOKAY; sblock.fs_clean = FS_CLEANFREQ; fsmodified = 1; } +#endif if (fsmodified) { (void)time(&sblock.fs_time); sbdirty(); diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index aa50e61dea78..b1c529a3da53 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 5.27 (Berkeley) 8/7/90";*/ -static char rcsid[] = "$Id: main.c,v 1.9 1993/10/06 00:52:07 cgd Exp $"; +static char rcsid[] = "$Id: main.c,v 1.10 1993/10/15 15:15:25 cgd Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -281,11 +281,13 @@ checkfilesys(filesys, mntpt, auxdata, child) zlnhead = (struct zlncnt *)0; duplist = (struct dups *)0; inocleanup(); +#ifdef notyet if (!clean && !nflag && fswritefd != -1) { sblock.fs_state = FSOKAY; sblock.fs_clean = FS_CLEANFREQ; fsmodified = 1; } +#endif if (fsmodified) { (void)time(&sblock.fs_time); sbdirty();