Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_ffs always print warning and return non-zero exit ...



details:   https://anonhg.NetBSD.org/src/rev/68b8dd26fcdd
branches:  trunk
changeset: 570453:68b8dd26fcdd
user:      dbj <dbj%NetBSD.org@localhost>
date:      Mon Oct 11 15:24:09 2004 +0000

description:
always print warning and return non-zero exit when there are unresolved inconsistencies.

diffstat:

 sbin/fsck_ffs/main.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 184a631abc1e -r 68b8dd26fcdd sbin/fsck_ffs/main.c
--- a/sbin/fsck_ffs/main.c      Mon Oct 11 15:00:51 2004 +0000
+++ b/sbin/fsck_ffs/main.c      Mon Oct 11 15:24:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.51 2004/06/25 14:50:15 wiz Exp $    */
+/*     $NetBSD: main.c,v 1.52 2004/10/11 15:24:09 dbj Exp $    */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 5/14/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.51 2004/06/25 14:50:15 wiz Exp $");
+__RCSID("$NetBSD: main.c,v 1.52 2004/10/11 15:24:09 dbj Exp $");
 #endif
 #endif /* not lint */
 
@@ -367,6 +367,10 @@
        free(inostathead);
        inostathead = NULL;
 
+       if (!resolved || rerun) {
+               pwarn("\n***** UNRESOLVED INCONSISTENCIES REMAIN *****\n");
+               returntosingle = 1;
+       }
        if (!fsmodified)
                return (0);
        if (!preen)



Home | Main Index | Thread Index | Old Index