"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/Proc_Partitions_Info.h" between
gparted-1.2.0.tar.gz and gparted-1.3.0.tar.gz

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

Proc_Partitions_Info.h  (gparted-1.2.0):Proc_Partitions_Info.h  (gparted-1.3.0)
skipping to change at line 26 skipping to change at line 26
/* Proc_Partitions_Info /* Proc_Partitions_Info
* *
* A persistent cache of information from the file /proc/partitions * A persistent cache of information from the file /proc/partitions
* that helps to minimize the number of required disk reads. * that helps to minimize the number of required disk reads.
*/ */
#ifndef GPARTED_PROC_PARTITIONS_INFO_H #ifndef GPARTED_PROC_PARTITIONS_INFO_H
#define GPARTED_PROC_PARTITIONS_INFO_H #define GPARTED_PROC_PARTITIONS_INFO_H
#include "BlockSpecial.h"
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include <vector> #include <vector>
namespace GParted namespace GParted
{ {
class Proc_Partitions_Info class Proc_Partitions_Info
{ {
public: public:
static void load_cache(); static void load_cache();
static const std::vector<Glib::ustring> & get_device_paths(); static const std::vector<Glib::ustring> & get_device_paths();
static std::vector<Glib::ustring> get_device_and_partition_paths_for(
const std::vector<Glib::ustring>& device_paths);
private: private:
static void initialize_if_required(); static void initialize_if_required();
static void load_proc_partitions_info_cache(); static void load_proc_partitions_info_cache();
static bool is_whole_disk_device_name(const Glib::ustring& name);
static std::vector<Glib::ustring> get_partition_paths_for(const Glib::ust
ring& name);
static bool is_partition_of_device(const Glib::ustring& partname, const G
lib::ustring& devname);
static bool proc_partitions_info_cache_initialized ; static bool proc_partitions_info_cache_initialized ;
static std::vector<BlockSpecial> all_entries_cache;
static std::vector<Glib::ustring> device_paths_cache ; static std::vector<Glib::ustring> device_paths_cache ;
}; };
}//GParted }//GParted
#endif /* GPARTED_PROC_PARTITIONS_INFO_H */ #endif /* GPARTED_PROC_PARTITIONS_INFO_H */
 End of changes. 4 change blocks. 
0 lines changed or deleted 11 lines changed or added

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