"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/raidmeter.h" (11 Jul 2020, 932 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "raidmeter.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 1999, 2006 Thomas Waldmann ( ThomasWaldmann@gmx.de )
    3 //  based on work of Mike Romberg ( mike.romberg@noaa.gov )
    4 //
    5 //  This file may be distributed under terms of the GPL
    6 //
    7 #ifndef _RAIDMETER_H_
    8 #define _RAIDMETER_H_
    9 
   10 #include "bitfieldmeter.h"
   11 #include "xosview.h"
   12 
   13 #define MAX_MD 8
   14 
   15 class RAIDMeter : public BitFieldMeter {
   16 public:
   17   RAIDMeter( XOSView *parent, int raiddev = 0);
   18   ~RAIDMeter( void );
   19 
   20   void checkevent( void );
   21 
   22   void checkResources( void );
   23 
   24   static int countRAIDs( void );
   25 
   26 protected:
   27 
   28   int _raiddev;
   29   static int mdnum;
   30 
   31   char state[20],
   32        type[20],
   33        working_map[20],
   34        resync_state[20];
   35   int  disknum;
   36 
   37   unsigned long doneColor_, todoColor_, completeColor_;
   38 
   39   int find1(const char *key, const char *findwhat, int num1);
   40   int find2(const char *key, const char *findwhat, int num1, int num2);
   41 
   42   int raidparse(char *cp);
   43 
   44   void getRAIDstate( void );
   45 };
   46 
   47 #endif