"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/SWRaid_Info.h" between
gparted-1.0.0.tar.gz and gparted-1.1.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

SWRaid_Info.h  (gparted-1.0.0):SWRaid_Info.h  (gparted-1.1.0)
skipping to change at line 19 skipping to change at line 19
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
/* SWRaid_Info /* SWRaid_Info
* *
* Cache of information about Linux Software RAID arrays so that the * Cache of information about RAID array members recognised by mdadm so
* mdadm command only needs to be executed once per refresh. * the command only needs to be executed once per refresh. This will
* include Linux Software RAID arrays and also IMSM and DDF type
* Firmware / BIOS / ATARAID arrays whether or not the distribution uses
* dmraid or mdadm to manage them.
*
* Note that ATARAID array members will only report as active in this
* module if they were started using mdadm and appear in /proc/mdstat.
*/ */
#ifndef GPARTED_SWRAID_INFO_H #ifndef GPARTED_SWRAID_INFO_H
#define GPARTED_SWRAID_INFO_H #define GPARTED_SWRAID_INFO_H
#include "BlockSpecial.h" #include "BlockSpecial.h"
#include "Utils.h"
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include <vector> #include <vector>
namespace GParted namespace GParted
{ {
struct SWRaid_Member struct SWRaid_Member
{ {
BlockSpecial member; BlockSpecial member;
FSType fstype;
Glib::ustring array; Glib::ustring array;
Glib::ustring uuid; Glib::ustring uuid;
Glib::ustring label; Glib::ustring label;
bool active; bool active;
}; };
class SWRaid_Info class SWRaid_Info
{ {
public: public:
static void load_cache(); static void load_cache();
static bool is_member( const Glib::ustring & member_path ); static bool is_member( const Glib::ustring & member_path );
static bool is_member_active( const Glib::ustring & member_path ); static bool is_member_active( const Glib::ustring & member_path );
static FSType get_fstype(const Glib::ustring& member_path);
static Glib::ustring get_array( const Glib::ustring & member_path ); static Glib::ustring get_array( const Glib::ustring & member_path );
static Glib::ustring get_uuid( const Glib::ustring & member_path ); static Glib::ustring get_uuid( const Glib::ustring & member_path );
static Glib::ustring get_label( const Glib::ustring & member_path ); static Glib::ustring get_label( const Glib::ustring & member_path );
private: private:
static void initialise_if_required(); static void initialise_if_required();
static void set_command_found(); static void set_command_found();
static void load_swraid_info_cache(); static void load_swraid_info_cache();
static SWRaid_Member & get_cache_entry_by_member( const Glib::ustring & m ember_path ); static SWRaid_Member & get_cache_entry_by_member( const Glib::ustring & m ember_path );
static Glib::ustring mdadm_to_canonical_uuid( const Glib::ustring & mdadm _uuid ); static Glib::ustring mdadm_to_canonical_uuid( const Glib::ustring & mdadm _uuid );
 End of changes. 4 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)