tech-userlevel archive

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

Re: raidframe status overview script



> It would probably be good to make sure that DIRTY state is reported
> prominently, currently it seems to be ignored.

Doh!  I went to the trouble to pick it out of the raidctl output, but
then I forgot to do anything with the resulting variable (parstat).

--- raidstat=   2009-01-21 17:22:05.000000000 -0500
+++ raidstat    2009-01-22 11:51:36.000000000 -0500
@@ -76,6 +76,9 @@
                        if (cback != "100%") {
                                printf(" (copyback %s)",cback);
                        }
+                       if (parstat != "clean") {
+                               printf(" (%s parity)",parstat);
+                       }
                        printf("\n");
                }'
   done

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index