12 #ifndef ZYPP_DISKUSAGE_COUNTER_H
13 #define ZYPP_DISKUSAGE_COUNTER_H
65 MountPoint(std::string d =
"/",
long long bs = 0LL,
long long total = 0LL,
long long used = 0LL,
long long pkg = 0LL,
bool ro=
false) :
153 #endif // ZYPP_DISKUSAGE_COUNTER_H
ByteCount blockSize() const
MountPointSet disk_usage(const ResPool &pool)
Compute disk usage of the pool.
A Solvable object within the sat Pool.
ByteCount commitDiff() const
bool setMountPoints(const MountPointSet &m)
MountPointSet disk_usage(const ResObject::constPtr &obj_r)
Store and operate with byte count.
static MountPointSet justRootPartition()
TraitsType::constPtrType constPtr
long long total_size
Total size in K (1024)
long long used_size
Used size in K (1024)
std::set< MountPoint > MountPointSet
std::ostream & operator<<(std::ostream &str, const Exception &obj)
ByteCount freeAfterCommit() const
std::string dir
Directory name.
DiskUsageCounter(const MountPointSet &m)
ByteCount totalSize() const
MountPointSet disk_usage(const PoolItem &pi_r)
long long pkg_size
Used size after commiting the pool (in K)
static const Unit B
1 Byte
bool operator<(const MountPoint &rhs) const
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
static const Unit K
1024 Byte
Reference to a PoolItem connecting ResObject and ResStatus.
ByteCount freeSize() const
const MountPointSet & getMountPoints() const
ByteCount usedSize() const
long long block_size
Block size of the mount point.
ByteCount usedAfterCommit() const
MountPoint(std::string d="/", long long bs=0LL, long long total=0LL, long long used=0LL, long long pkg=0LL, bool ro=false)
Ctor - initialize directory and package size.
static MountPointSet detectMountPoints(const std::string &rootdir="/")