Home
last modified time | relevance | path

Searched refs:instance_id_file (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Virtualization/compos/composd/src/
Dinstance_starter.rs69 instance_id_file: PathBuf, field
81 let instance_id_file = instance_root_path.join(INSTANCE_ID_FILE); in new() localVariable
89 instance_id_file, in new()
132 fs::read(&self.instance_id_file)? in start_vm()
188 fs::write(&self.instance_id_file, id)?; in allocate_instance_id()
/packages/modules/Virtualization/service_vm/manager/src/
Dlib.rs225 let instance_id_file = Path::new(VIRT_DATA_DIR).join(INSTANCE_ID_FILENAME); in protected_vm_instance() localVariable
226 let instance_id = get_or_allocate_instance_id(service.as_ref(), instance_id_file)?; in protected_vm_instance()
250 instance_id_file: PathBuf, in get_or_allocate_instance_id()
253 if instance_id_file.exists() {
254 let mut file = File::open(&instance_id_file)?;
259 fs::write(instance_id_file, instance_id)?;
/packages/modules/Virtualization/vm/src/
Drun.rs92 let mut instance_id_file = File::open(id_file)?; in command_run_app() localVariable
93 instance_id_file.read_exact(&mut id)?; in command_run_app()
97 let mut instance_id_file = File::create(id_file)?; in command_run_app() localVariable
98 instance_id_file.write_all(&id)?; in command_run_app()
Dmain.rs240 fn set_instance_id(&mut self, instance_id_file: PathBuf) -> Result<(), Error> { in set_instance_id()
241 self.instance_id = instance_id_file; in set_instance_id()
/packages/modules/Virtualization/compos/verify/
Dverify.rs94 let instance_id_file = instance_dir.join(INSTANCE_ID_FILE); in try_main() localVariable
101 fs::read(instance_id_file)?.try_into().map_err(|_| anyhow!("Failed to get instance_id"))? in try_main()