STABLE14-vos-increment-offline-count-20090218
authorPeter Tripician <tripicia@cmf.nrl.navy.mil>
Wed, 18 Feb 2009 17:28:20 +0000 (17:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 18 Feb 2009 17:28:20 +0000 (17:28 +0000)
LICENSE IPL10
FIXES 124333

increment offline volume count, not pointer to it

(cherry picked from commit 733794b4d8be284dcb6f9e60fa4b4abe1f3398f2)

src/volser/vos.c

index 900276e..299c100 100644 (file)
@@ -505,7 +505,7 @@ DisplayFormat(pntr, server, part, totalOK, totalNotOK, totalBusy, fast,
                *totalOK += 1;
            } else {
                fprintf(STDOUT, "Off-line");
-               *totalNotOK++;
+               *totalNotOK += 1;
            }
            if (pntr->needsSalvaged == 1)
                fprintf(STDOUT, "**needs salvage**");