#include #include #include #include class mount_entry_t { public: mount_entry_t(::mntent *entry); const std::string &getFsName() const; const std::string &getMountPoint() const; const std::string &getType() const; const std::unordered_map &getOptions() const; int getDumpFrequency() const; int getPassNumber() const; private: void parseMountOptions(const std::string &input); std::string fsname; std::string dir; std::string type; std::unordered_map opts_map; int freq; int passno; }; std::vector parseMountsFromPath(const char *path);