#include <FreeInfo.h>
Public Member Functions | |
| FreeInfo (bool resize_cached, const ResizeInfo &resize_info, bool content_cached, const ContentInfo &content_info) | |
| FreeInfo (const xmlNode *node) | |
| void | saveData (xmlNode *node) const |
| void | update (bool resize_cached, const ResizeInfo &resize_info, bool content_cached, const ContentInfo &content_info) |
Static Public Member Functions | |
| static ResizeInfo | detectResizeInfo (const string &mp, const Volume &vol) |
| static ContentInfo | detectContentInfo (const string &mp, const Volume &vol) |
Public Attributes | |
| bool | resize_cached |
| ResizeInfo | resize_info |
| bool | content_cached |
| ContentInfo | content_info |
Static Protected Member Functions | |
| static bool | isWindows (const string &mp) |
| static unsigned | numHomes (const string &mp) |
| storage::FreeInfo::FreeInfo | ( | bool | resize_cached, | |
| const ResizeInfo & | resize_info, | |||
| bool | content_cached, | |||
| const ContentInfo & | content_info | |||
| ) | [inline] |
| storage::FreeInfo::FreeInfo | ( | const xmlNode * | node | ) |
References content_cached, content_info, storage::ResizeInfo::df_freeK, storage::ContentInfo::efi, storage::getChildValue(), storage::ContentInfo::homes, resize_cached, storage::ResizeInfo::resize_freeK, resize_info, storage::ResizeInfo::resize_ok, storage::ResizeInfo::usedK, and storage::ContentInfo::windows.
| void storage::FreeInfo::saveData | ( | xmlNode * | node | ) | const |
References content_cached, content_info, storage::ResizeInfo::df_freeK, storage::ContentInfo::efi, storage::ContentInfo::homes, resize_cached, storage::ResizeInfo::resize_freeK, resize_info, storage::ResizeInfo::resize_ok, storage::setChildValue(), storage::ResizeInfo::usedK, and storage::ContentInfo::windows.
| void storage::FreeInfo::update | ( | bool | resize_cached, | |
| const ResizeInfo & | resize_info, | |||
| bool | content_cached, | |||
| const ContentInfo & | content_info | |||
| ) |
References content_cached, content_info, resize_cached, and resize_info.
| ResizeInfo storage::FreeInfo::detectResizeInfo | ( | const string & | mp, | |
| const Volume & | vol | |||
| ) | [static] |
References storage::Device::device(), storage::ResizeInfo::df_freeK, storage::StatVfs::freeK, storage::Volume::getFs(), storage::getStatVfs(), storage::NTFS, storage::quote(), storage::ResizeInfo::resize_freeK, resize_info, storage::ResizeInfo::resize_ok, storage::SystemCmd::retcode(), storage::Device::sizeK(), storage::StatVfs::sizeK, storage::SystemCmd::stdout(), storage::ResizeInfo::usedK, and y2mil.
Referenced by storage::Storage::getFreeInfo().
| ContentInfo storage::FreeInfo::detectContentInfo | ( | const string & | mp, | |
| const Volume & | vol | |||
| ) | [static] |
References storage::checkDir(), content_info, storage::Device::device(), storage::ContentInfo::efi, storage::EXT2, storage::EXT3, storage::EXT4, storage::extractNthWord(), storage::Volume::getFs(), storage::Volume::getLabel(), storage::ContentInfo::homes, isWindows(), storage::Volume::mountDevice(), storage::NTFS, numHomes(), storage::VFAT, storage::ContentInfo::windows, and y2mil.
Referenced by storage::Storage::getFreeInfo().
| bool storage::FreeInfo::isWindows | ( | const string & | mp | ) | [static, protected] |
| unsigned storage::FreeInfo::numHomes | ( | const string & | mp | ) | [static, protected] |
References storage::checkDir(), storage::glob(), storage::lengthof(), storage::quote(), and y2mil.
Referenced by detectContentInfo().
Referenced by FreeInfo(), storage::operator<<(), saveData(), and update().
Referenced by detectResizeInfo(), FreeInfo(), storage::operator<<(), saveData(), and update().
Referenced by FreeInfo(), storage::operator<<(), saveData(), and update().
Referenced by detectContentInfo(), FreeInfo(), storage::operator<<(), saveData(), and update().
1.5.6