Android-cuttlefish cvd tool
Namespaces | Typedefs | Functions
disk_usage.cpp File Reference
#include "cuttlefish/common/libs/utils/disk_usage.h"
#include <stddef.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <set>
#include <string>
#include <utility>
#include "cuttlefish/files/directory_contents.h"
#include "cuttlefish/posix/stat.h"
#include "cuttlefish/result/result.h"
Include dependency graph for disk_usage.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{disk_usage.cpp}
 

Typedefs

using cuttlefish::anonymous_namespace{disk_usage.cpp}::InodeSet = std::set< std::pair< dev_t, ino_t > >
 

Functions

Result< size_t > cuttlefish::anonymous_namespace{disk_usage.cpp}::DirectoryApparentSize (const std::string &dir, const struct stat &dir_st, InodeSet &counted_inodes)
 
Result< size_t > cuttlefish::anonymous_namespace{disk_usage.cpp}::ApparentSize (const std::string &path)
 
Result< size_t > cuttlefish::GetDiskUsageBytes (const std::string &path)
 
Result< size_t > cuttlefish::GetDiskUsageGigabytes (const std::string &path)