/device/google/cuttlefish/host/commands/snapshot_util_cvd/ |
D | main.cc | 40 Result<std::string> ToAbsolutePath(const std::string& snapshot_path) { in ToAbsolutePath() argument 44 .path_to_convert = snapshot_path, in ToAbsolutePath() 50 snapshot_path); in ToAbsolutePath() 90 CF_EXPECT(!parsed.snapshot_path.empty(), "--snapshot_path is required"); in SnapshotCvdMain() 91 parsed.snapshot_path = CF_EXPECT(ToAbsolutePath(parsed.snapshot_path)); in SnapshotCvdMain() 93 FileExists(parsed.snapshot_path, /* follow symlink */ false)) { in SnapshotCvdMain() 94 CF_EXPECT(RecursivelyRemoveDirectory(parsed.snapshot_path), in SnapshotCvdMain() 97 CF_EXPECTF(!FileExists(parsed.snapshot_path, /* follow symlink */ false), in SnapshotCvdMain() 99 parsed.snapshot_path); in SnapshotCvdMain() 128 Result<void> result = RecursivelyRemoveDirectory(parsed.snapshot_path); in SnapshotCvdMain() [all …]
|
D | snapshot_taker.cc | 49 const std::string snapshot_path = CF_EXPECT(EmulateAbsolutePath(InputPathForm{ in HandleHostGroupSnapshot() local 67 CF_EXPECTF(CopyDirectoryRecursively(cuttlefish_root, snapshot_path, in HandleHostGroupSnapshot() 70 "\"cp -r {} {} failed.\"", cuttlefish_root, snapshot_path); in HandleHostGroupSnapshot() 73 CF_EXPECTF(CreateMetaInfo(*cuttlefish_config, snapshot_path), in HandleHostGroupSnapshot() 81 const auto meta_json_path = SnapshotMetaJsonPath(snapshot_path); in HandleHostGroupSnapshot() 93 snapshot_path + "/" + in HandleHostGroupSnapshot()
|
D | parse.cc | 117 std::string snapshot_path; in Parse() local 120 flags.push_back(SnapshotPathFlag(snapshot_path)); in Parse() 139 parsed.snapshot_path = snapshot_path; in Parse()
|
D | snapshot_taker.h | 34 Result<std::string> HandleHostGroupSnapshot(const std::string& snapshot_path);
|
D | parse.h | 43 std::string snapshot_path; member
|
/device/google/cuttlefish/host/libs/command_util/ |
D | snapshot_utils.cc | 200 const std::string snapshot_path = meta_json[kSnapshotPathField].asString(); in InstanceGuestSnapshotPath() local 208 auto snapshot_path_direct_parent = snapshot_path + "/" + guest_snapshot_dir; in InstanceGuestSnapshotPath() 214 const std::string& snapshot_path) { in CreateMetaInfo() argument 216 meta_info[kSnapshotPathField] = snapshot_path; in CreateMetaInfo() 256 std::string SnapshotMetaJsonPath(const std::string& snapshot_path) { in SnapshotMetaJsonPath() argument 257 return snapshot_path + "/" + kMetaInfoJsonFileName; in SnapshotMetaJsonPath() 260 Result<Json::Value> LoadMetaJson(const std::string& snapshot_path) { in LoadMetaJson() argument 261 auto meta_json_path = SnapshotMetaJsonPath(snapshot_path); in LoadMetaJson() 267 const std::string& snapshot_path) { in GuestSnapshotDirectories() argument 268 auto meta_json = CF_EXPECT(LoadMetaJson(snapshot_path)); in GuestSnapshotDirectories() [all …]
|
D | snapshot_utils.h | 39 const std::string& snapshot_path); 43 std::string SnapshotMetaJsonPath(const std::string& snapshot_path); 44 Result<Json::Value> LoadMetaJson(const std::string& snapshot_path); 47 const std::string& snapshot_path);
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | assemble_cvd.cc | 54 DEFINE_string(snapshot_path, "", 199 const auto snapshot_path = FLAGS_snapshot_path; in PreservingOnResume() local 200 const bool resume_requested = FLAGS_resume || !snapshot_path.empty(); in PreservingOnResume() 204 CF_EXPECT(snapshot_path.empty() || !creating_os_disk, in PreservingOnResume() 254 if (!snapshot_path.empty()) { in PreservingOnResume() 305 const std::string snapshot_path = FLAGS_snapshot_path; in InitFilesystemAndCreateConfig() local 306 if (!snapshot_path.empty()) { in InitFilesystemAndCreateConfig() 307 CF_EXPECT(RestoreHostFiles(config.root_dir(), snapshot_path)); in InitFilesystemAndCreateConfig() 387 if (!snapshot_path.empty()) { in InitFilesystemAndCreateConfig() 496 const std::string& snapshot_path) { in VerifyConditionsOnSnapshotRestore() argument [all …]
|
D | flags.cc | 524 DECLARE_string(snapshot_path); 954 const std::string snapshot_path = FLAGS_snapshot_path; in InitializeCuttlefishConfiguration() local 955 if (!snapshot_path.empty()) { in InitializeCuttlefishConfiguration() 957 snapshot_path + "/assembly/cuttlefish_config.json"; in InitializeCuttlefishConfiguration() 959 tmp_config_obj.set_snapshot_path(snapshot_path); in InitializeCuttlefishConfiguration()
|
/device/google/cuttlefish/host/commands/run_cvd/ |
D | server_loop_impl_snapshot.cpp | 262 CF_EXPECT(!snapshot_take.snapshot_path().empty(), in HandleSnapshotTake() 265 TakeGuestSnapshot(config_.vm_manager(), snapshot_take.snapshot_path()), in HandleSnapshotTake()
|
/device/google/cuttlefish/host/libs/config/ |
D | cuttlefish_config.cpp | 560 std::string CuttlefishConfig::snapshot_path() const { in snapshot_path() function in cuttlefish::CuttlefishConfig 563 void CuttlefishConfig::set_snapshot_path(const std::string& snapshot_path) { in set_snapshot_path() argument 564 (*dictionary_)[kSnapshotPath] = snapshot_path; in set_snapshot_path()
|
D | cuttlefish_config.h | 280 std::string snapshot_path() const; 281 void set_snapshot_path(const std::string& snapshot_path);
|
/device/google/cuttlefish/host/libs/command_util/runner/ |
D | run_cvd.proto | 36 string snapshot_path = 1; field
|
/device/google/cuttlefish/host/libs/vm_manager/ |
D | crosvm_manager.cpp | 454 const std::string snapshot_dir_path = config.snapshot_path(); in StartCommands()
|