Searched refs:instance_id_file (Results 1 – 5 of 5) sorted by relevance
69 instance_id_file: PathBuf, field81 let instance_id_file = instance_root_path.join(INSTANCE_ID_FILE); in new() localVariable89 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()
225 let instance_id_file = Path::new(VIRT_DATA_DIR).join(INSTANCE_ID_FILENAME); in protected_vm_instance() localVariable226 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)?;
92 let mut instance_id_file = File::open(id_file)?; in command_run_app() localVariable93 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() localVariable98 instance_id_file.write_all(&id)?; in command_run_app()
240 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()
94 let instance_id_file = instance_dir.join(INSTANCE_ID_FILE); in try_main() localVariable101 fs::read(instance_id_file)?.try_into().map_err(|_| anyhow!("Failed to get instance_id"))? in try_main()