Home
last modified time | relevance | path

Searched refs:snapshot_path (Results 1 – 14 of 14) sorted by relevance

/device/google/cuttlefish/host/commands/snapshot_util_cvd/
Dmain.cc40 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 …]
Dsnapshot_taker.cc49 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()
Dparse.cc117 std::string snapshot_path; in Parse() local
120 flags.push_back(SnapshotPathFlag(snapshot_path)); in Parse()
139 parsed.snapshot_path = snapshot_path; in Parse()
Dsnapshot_taker.h34 Result<std::string> HandleHostGroupSnapshot(const std::string& snapshot_path);
Dparse.h43 std::string snapshot_path; member
/device/google/cuttlefish/host/libs/command_util/
Dsnapshot_utils.cc200 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 …]
Dsnapshot_utils.h39 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/
Dassemble_cvd.cc54 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 …]
Dflags.cc524 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/
Dserver_loop_impl_snapshot.cpp262 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/
Dcuttlefish_config.cpp560 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()
Dcuttlefish_config.h280 std::string snapshot_path() const;
281 void set_snapshot_path(const std::string& snapshot_path);
/device/google/cuttlefish/host/libs/command_util/runner/
Drun_cvd.proto36 string snapshot_path = 1; field
/device/google/cuttlefish/host/libs/vm_manager/
Dcrosvm_manager.cpp454 const std::string snapshot_dir_path = config.snapshot_path(); in StartCommands()