1
/* Copyright (C) 2009 Curtis Gedak
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Library General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* This class was created in an effort to reduce the complexity of the
21
* This class provides support for Linux software RAID devices (mdadm).
22
* Static elements are used in order to reduce the disk accesses required to
23
* load the data structures upon each initialization of the class.
29
#include "../include/Utils.h"
41
SWRaid( const bool & do_refresh ) ;
43
bool is_swraid_supported() ;
44
void get_devices( std::vector<Glib::ustring> & swraid_devices ) ;
46
void load_swraid_cache() ;
47
void set_commands_found() ;
48
static bool swraid_cache_initialized ;
49
static bool mdadm_found ;
50
static std::vector<Glib::ustring> swraid_devices ;
55
#endif /* SWRAID_H_ */