Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_ffs Skip checks for old 4.2BSD filesystem; as it s...



details:   https://anonhg.NetBSD.org/src/rev/147a8f0bf553
branches:  trunk
changeset: 545242:147a8f0bf553
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Apr 05 13:45:21 2003 +0000

description:
Skip checks for old 4.2BSD filesystem; as it stands, we can't deal with
writing them. Could be fixed, but doesn't have a high priority.

diffstat:

 sbin/fsck_ffs/setup.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r c1f0e3c0a789 -r 147a8f0bf553 sbin/fsck_ffs/setup.c
--- a/sbin/fsck_ffs/setup.c     Sat Apr 05 13:37:36 2003 +0000
+++ b/sbin/fsck_ffs/setup.c     Sat Apr 05 13:45:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setup.c,v 1.58 2003/04/02 10:39:26 fvdl Exp $  */
+/*     $NetBSD: setup.c,v 1.59 2003/04/05 13:45:21 fvdl Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setup.c    8.10 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: setup.c,v 1.58 2003/04/02 10:39:26 fvdl Exp $");
+__RCSID("$NetBSD: setup.c,v 1.59 2003/04/05 13:45:21 fvdl Exp $");
 #endif
 #endif /* not lint */
 
@@ -167,6 +167,11 @@
                printf("clean = %d\n", sblock->fs_clean);
        if (doswap)
                doskipclean = 0;
+       if (sblock->fs_old_postblformat == FS_42POSTBLFMT) {
+               pwarn("%sile system is in 4.2BSD format, check skipped\n",
+                   preen ? "f" : "** F");
+               return -1;
+       }
        if (sblock->fs_clean & FS_ISCLEAN) {
                if (doskipclean) {
                        pwarn("%sile system is clean; not checking\n",



Home | Main Index | Thread Index | Old Index