Sha256: 2c9ac38ef0ee9f8eb2f8bd381922c0f82ef57d4f8f06bbc84ca1a51df17d6e59
Contents?: true
Size: 1.33 KB
Versions: 16
Compression:
Stored size: 1.33 KB
Contents
/** * @file * Declares the Linux file system fact resolver. */ #pragma once #include "../resolvers/filesystem_resolver.hpp" #include <map> namespace facter { namespace facts { namespace linux { /** * Responsible for resolving Linux file system facts. */ struct filesystem_resolver : resolvers::filesystem_resolver { /** * Converts a string using the same format as blkid's "safe_print" function. * The format uses M-\<char> (higher than 128) and ^\<char> (control character), while escaping quotes and backslashes. * @param value The value to convert. * @return Returns the converted value. */ static std::string safe_convert(char const* value); protected: /** * Collects the DMI data. * @param facts The fact collection that is resolving facts. * @return Returns the DMI data. */ virtual data collect_data(collection& facts) override; private: void collect_mountpoint_data(data& result); void collect_filesystem_data(data& result); void collect_partition_data(data& result); void populate_partition_attributes(partition& part, std::string const& device_directory, void* cache, std::map<std::string, std::string> const& mountpoints); }; }}} // namespace facter::facts::linux
Version data entries
16 entries across 16 versions & 2 rubygems