|
Android-cuttlefish cvd tool
|
#include "cuttlefish/host/libs/command_util/snapshot_utils.h"#include <fcntl.h>#include <stdlib.h>#include <sys/stat.h>#include <time.h>#include <functional>#include <string>#include <string_view>#include <unordered_map>#include <vector>#include "absl/log/log.h"#include "absl/strings/strip.h"#include "json/value.h"#include "cuttlefish/common/libs/fs/shared_fd.h"#include "cuttlefish/common/libs/utils/environment.h"#include "cuttlefish/common/libs/utils/files.h"#include "cuttlefish/common/libs/utils/json.h"#include "cuttlefish/files/copy.h"#include "cuttlefish/files/directory_contents.h"#include "cuttlefish/files/directory_exists.h"#include "cuttlefish/files/file_exists.h"#include "cuttlefish/host/libs/config/cuttlefish_config.h"#include "cuttlefish/posix/readlink.h"#include "cuttlefish/posix/realpath.h"#include "cuttlefish/posix/remove.h"#include "cuttlefish/posix/symlink.h"#include "cuttlefish/result/result.h"
Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{snapshot_utils.cc} |
Functions | |
| bool | cuttlefish::anonymous_namespace{snapshot_utils.cc}::IsFifo (const struct stat &file_stat) |
| bool | cuttlefish::anonymous_namespace{snapshot_utils.cc}::IsSocket (const struct stat &file_stat) |
| bool | cuttlefish::anonymous_namespace{snapshot_utils.cc}::IsSymlink (const struct stat &file_stat) |
| bool | cuttlefish::anonymous_namespace{snapshot_utils.cc}::IsRegular (const struct stat &file_stat) |
| Result< void > | cuttlefish::anonymous_namespace{snapshot_utils.cc}::CopyDirectoryImpl (const std::string &src_dir_path, const std::string &dest_dir_path, const std::function< bool(const std::string &)> &predicate) |
| std::string | cuttlefish::anonymous_namespace{snapshot_utils.cc}::RealpathOrSelf (const std::string &path) |
| Result< void > | cuttlefish::CopyDirectoryRecursively (const std::string &src_dir_path, const std::string &dest_dir_path, const bool verify_dest_dir_empty, std::function< bool(const std::string &)> predicate) |
| Result< std::string > | cuttlefish::InstanceGuestSnapshotPath (const Json::Value &meta_json, const std::string &instance_id) |
| Result< Json::Value > | cuttlefish::CreateMetaInfo (const CuttlefishConfig &cuttlefish_config, const std::string &snapshot_path) |
| std::string | cuttlefish::SnapshotMetaJsonPath (const std::string &snapshot_path) |
| Result< Json::Value > | cuttlefish::LoadMetaJson (const std::string &snapshot_path) |
| Result< std::vector< std::string > > | cuttlefish::GuestSnapshotDirectories (const std::string &snapshot_path) |