libzypp 17.31.23
|
Mount point description If block_size is set DiskUsageCoutner will assume half a block_size is wasted per file, in case a package provides detailed isk usage information. More...
#include <DiskUsageCounter.h>
Public Types | |
enum | Hint { NoHint = 0 , Hint_readonly = (1<<0) , Hint_growonly = (1<<1) } |
HinFlags for ctor. More... | |
Public Member Functions | |
ZYPP_DECLARE_FLAGS (HintFlags, Hint) | |
MountPoint (const std::string &d="/", const std::string &f=std::string(), long long bs=0LL, long long total=0LL, long long used=0LL, long long pkg=0LL, HintFlags hints=NoHint) | |
Ctor initialize directory, fstype and sizes. | |
MountPoint (const char *d, const std::string &f=std::string(), long long bs=0LL, long long total=0LL, long long used=0LL, long long pkg=0LL, HintFlags hints=NoHint) | |
MountPoint (const std::string &d, long long bs, long long total=0LL, long long used=0LL, long long pkg=0LL, HintFlags hints=NoHint) | |
Ctor initialize directory and sizes. | |
MountPoint (const char *d, long long bs, long long total=0LL, long long used=0LL, long long pkg=0LL, HintFlags hints=NoHint) | |
MountPoint (const std::string &d, HintFlags hints) | |
Ctor just name and hints, all sizes 0. | |
MountPoint (const char *d, HintFlags hints) | |
MountPoint (const std::string &d, Hint hint) | |
MountPoint (const char *d, Hint hint) | |
bool | operator< (const MountPoint &rhs) const |
Sort by directory name. | |
ByteCount | blockSize () const |
Block size of the filesystem as ByteCount for convenience. | |
ByteCount | totalSize () const |
Total size of the filesystem as ByteCount for convenience. | |
ByteCount | usedSize () const |
Used size of the filesystem as ByteCount for convenience. | |
ByteCount | freeSize () const |
Free size of the filesystem as ByteCount for convenience. | |
ByteCount | usedAfterCommit () const |
Used size after installation as ByteCount for convenience. | |
ByteCount | freeAfterCommit () const |
Free size after installation as ByteCount for convenience. | |
ByteCount | commitDiff () const |
Size change due to installation as ByteCount for convenience. | |
Public Attributes | |
std::string | dir |
Directory name. | |
std::string | fstype |
Filesystem type (provided by detectMountPoints) | |
long long | block_size |
Block size of the filesystem in B (0 if you don't care) | |
long long | total_size |
Total size of the filesystem in KiB (0 if you don't care) | |
long long | used_size |
Used size of the filesystem in KiB (0 if you don't care) | |
long long | pkg_size |
Used size after installation in KiB (computed by DiskUsageCoutner) | |
bool | readonly:1 |
hint for readonly partitions | |
bool | growonly:1 |
hint for growonly partitions (e.g. snapshotting btrfs) | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const MountPoint &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const DiskUsageCounter::MountPoint &obj) |
Stream output. | |
Mount point description If block_size is set DiskUsageCoutner will assume half a block_size is wasted per file, in case a package provides detailed isk usage information.
Definition at line 42 of file DiskUsageCounter.h.
HinFlags for ctor.
Enumerator | |
---|---|
NoHint | |
Hint_readonly | readonly partitions |
Hint_growonly | growonly partitions (e.g. snapshotting btrfs) |
Definition at line 57 of file DiskUsageCounter.h.
|
inline |
Ctor initialize directory, fstype and sizes.
Definition at line 66 of file DiskUsageCounter.h.
|
inline |
Definition at line 80 of file DiskUsageCounter.h.
|
inline |
Ctor initialize directory and sizes.
Definition at line 89 of file DiskUsageCounter.h.
|
inline |
Definition at line 95 of file DiskUsageCounter.h.
|
inline |
Ctor just name and hints, all sizes 0.
Definition at line 103 of file DiskUsageCounter.h.
|
inline |
Definition at line 107 of file DiskUsageCounter.h.
|
inline |
Definition at line 111 of file DiskUsageCounter.h.
|
inline |
Definition at line 115 of file DiskUsageCounter.h.
zypp::DiskUsageCounter::MountPoint::ZYPP_DECLARE_FLAGS | ( | HintFlags | , |
Hint | |||
) |
|
inline |
Sort by directory name.
Definition at line 120 of file DiskUsageCounter.h.
|
inline |
Block size of the filesystem as ByteCount for convenience.
Definition at line 124 of file DiskUsageCounter.h.
|
inline |
Total size of the filesystem as ByteCount for convenience.
Definition at line 128 of file DiskUsageCounter.h.
|
inline |
Used size of the filesystem as ByteCount for convenience.
Definition at line 132 of file DiskUsageCounter.h.
|
inline |
Free size of the filesystem as ByteCount for convenience.
Definition at line 136 of file DiskUsageCounter.h.
|
inline |
Used size after installation as ByteCount for convenience.
Definition at line 140 of file DiskUsageCounter.h.
|
inline |
Free size after installation as ByteCount for convenience.
Definition at line 144 of file DiskUsageCounter.h.
|
inline |
Size change due to installation as ByteCount for convenience.
Definition at line 148 of file DiskUsageCounter.h.
|
friend |
Definition at line 344 of file DiskUsageCounter.cc.
|
related |
Stream output.
Definition at line 344 of file DiskUsageCounter.cc.
std::string zypp::DiskUsageCounter::MountPoint::dir |
Directory name.
Definition at line 45 of file DiskUsageCounter.h.
std::string zypp::DiskUsageCounter::MountPoint::fstype |
Filesystem type (provided by detectMountPoints)
Definition at line 46 of file DiskUsageCounter.h.
long long zypp::DiskUsageCounter::MountPoint::block_size |
Block size of the filesystem in B (0 if you don't care)
Definition at line 47 of file DiskUsageCounter.h.
long long zypp::DiskUsageCounter::MountPoint::total_size |
Total size of the filesystem in KiB (0 if you don't care)
Definition at line 48 of file DiskUsageCounter.h.
long long zypp::DiskUsageCounter::MountPoint::used_size |
Used size of the filesystem in KiB (0 if you don't care)
Definition at line 49 of file DiskUsageCounter.h.
|
mutable |
Used size after installation in KiB (computed by DiskUsageCoutner)
Definition at line 50 of file DiskUsageCounter.h.
bool zypp::DiskUsageCounter::MountPoint::readonly |
hint for readonly partitions
Definition at line 52 of file DiskUsageCounter.h.
bool zypp::DiskUsageCounter::MountPoint::growonly |
hint for growonly partitions (e.g. snapshotting btrfs)
Definition at line 53 of file DiskUsageCounter.h.