From: Derrick Brashear Date: Sun, 10 Mar 2002 19:26:41 +0000 (+0000) Subject: solaris-vfsck-allow-force-runs-when-old-inodes-exist-20020310 X-Git-Tag: openafs-devel_1_3_3~190 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2dbc58bc4a00a7ba755327b22b3fbd5fb05889a6;p=packages%2Fo%2Fopenafs.git solaris-vfsck-allow-force-runs-when-old-inodes-exist-20020310 if running with -y report old inodes and continue anyway --- diff --git a/src/vfsck/pass1.c b/src/vfsck/pass1.c index 88f4e32e7..b1173eecb 100644 --- a/src/vfsck/pass1.c +++ b/src/vfsck/pass1.c @@ -70,7 +70,8 @@ extern int ge_danger; static daddr_t badblk; static daddr_t dupblk; int pass1check(); - +static int oldreported; + pass1() { register int c, i, j; @@ -306,10 +307,19 @@ ignore_direct_block_check: #if defined(AFS_SUN56_ENV) if ( OLDVICEINODE ) { - /* This looks like a sol 2.5 AFS inode */ - printf("This vicep partition seems to contain pre Sol2.6 AFS inodes\n"); - printf("You should run the AFS file conversion utility before installing Sol 2.6\n"); - exit(100); /* unique return code? */ + if (yflag) { + if (!oldreported) { + printf("This vicep partition seems to contain pre Sol2.6 AFS inodes\n"); + printf("You should run the AFS file conversion utility before installing Sol 2.6\n"); + printf("Continuing anyway.\n"); + oldreported++; + } + } else { + /* This looks like a sol 2.5 AFS inode */ + printf("This vicep partition seems to contain pre Sol2.6 AFS inodes\n"); + printf("You should run the AFS file conversion utility before installing Sol 2.6\n"); + exit(100); /* unique return code? */ + } } #endif statemap[inumber] =