|
rvm
1.11
|
Retrieve information about a filesystem. More...
#include <fs.h>

Public Types | |
| typedef uint64 | size_type |
Public Member Functions | |
| filesystem () | |
| C'tor. More... | |
| filesystem (const std::string &a_path) | |
| C'tor. More... | |
| void | clear (void) |
| Clear the filesystem object. More... | |
| void | path (const std::string &a_path) |
| Retrieve information about the filesystem on which the given path resides. More... | |
| const std::string | path (void) const |
| Return the path from which this filesystem information was obtained. More... | |
| const size_type | blocksize (void) const |
| Return the filesystem block size. More... | |
| const size_type | total_blocks (void) const |
| Return the filesystem's total number of blocks. More... | |
| const size_type | free_blocks (void) const |
| Return the filesystem's number of free blocks. More... | |
| const size_type | used_blocks (void) const |
| Return the filesystem's number of used blocks. More... | |
| const size_type | total_inodes (void) const |
| Return the filesystem's total number of inodes, if supported by the filesystem, otherwise the result is system-dependent, but usually 0. More... | |
| const size_type | free_inodes (void) const |
| Return the filesystem's total number of free inodes, if supported by the filesystem, otherwise the result is system-dependent, but usually 0. More... | |
| const size_type | used_inodes (void) const |
| Return the filesystem's number of used inodes. More... | |
| filesystem & | operator= (const filesystem &a_class) |
| Copy values from another instance. More... | |
Private Attributes | |
| std::string | m_path |
| struct STATFS | m_statfs |
| typedef uint64 filesystem::size_type |
| filesystem::filesystem | ( | ) |
| filesystem::filesystem | ( | const std::string & | a_path | ) |
| const filesystem::size_type filesystem::blocksize | ( | void | ) | const |
| void filesystem::clear | ( | void | ) |
| const filesystem::size_type filesystem::free_blocks | ( | void | ) | const |
Return the filesystem's number of free blocks.
Definition at line 1640 of file fs.cc.
References m_statfs.
Referenced by vault_stats_report::assign(), vault_manager::select(), vault_manager::usage(), and used_blocks().
| const filesystem::size_type filesystem::free_inodes | ( | void | ) | const |
Return the filesystem's total number of free inodes, if supported by the filesystem, otherwise the result is system-dependent, but usually 0.
Definition at line 1674 of file fs.cc.
References m_statfs.
Referenced by vault_stats_report::assign(), vault_manager::usage(), and used_inodes().
| filesystem & filesystem::operator= | ( | const filesystem & | a_class | ) |
| void filesystem::path | ( | const std::string & | a_path | ) |
Retrieve information about the filesystem on which the given path resides.
Definition at line 1600 of file fs.cc.
References ERROR, m_path, m_statfs, reform_path(), STATFS, and TRY_nomem.
Referenced by vault_manager::select(), test_filesystem(), and vault_manager::usage().

| const std::string filesystem::path | ( | void | ) | const |
Return the path from which this filesystem information was obtained.
Definition at line 1614 of file fs.cc.
References m_path.
Referenced by filesystem().
| const filesystem::size_type filesystem::total_blocks | ( | void | ) | const |
Return the filesystem's total number of blocks.
Definition at line 1630 of file fs.cc.
References m_statfs.
Referenced by vault_stats_report::assign(), vault_manager::usage(), and used_blocks().
| const filesystem::size_type filesystem::total_inodes | ( | void | ) | const |
Return the filesystem's total number of inodes, if supported by the filesystem, otherwise the result is system-dependent, but usually 0.
Definition at line 1662 of file fs.cc.
References m_statfs.
Referenced by vault_stats_report::assign(), vault_manager::usage(), and used_inodes().
| const filesystem::size_type filesystem::used_blocks | ( | void | ) | const |
Return the filesystem's number of used blocks.
Definition at line 1650 of file fs.cc.
References free_blocks(), and total_blocks().

| const filesystem::size_type filesystem::used_inodes | ( | void | ) | const |
Return the filesystem's number of used inodes.
Definition at line 1684 of file fs.cc.
References free_inodes(), and total_inodes().

|
private |
Definition at line 338 of file fs.h.
Referenced by clear(), operator=(), and path().
|
private |
Definition at line 339 of file fs.h.
Referenced by blocksize(), clear(), free_blocks(), free_inodes(), operator=(), path(), total_blocks(), and total_inodes().
1.8.6