Home
last modified time | relevance | path

Searched refs:OpenOptions (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Virtualization/virtualizationmanager/src/
Dcomposite.rs22 use std::fs::{File, OpenOptions};
40 let mut composite_image = OpenOptions::new() in make_composite_image()
47 OpenOptions::new().create_new(true).read(true).write(true).open(header_path).with_context( in make_composite_image()
51 OpenOptions::new().create_new(true).read(true).write(true).open(footer_path).with_context( in make_composite_image()
Dpayload.rs38 use std::fs::{metadata, File, OpenOptions};
233 let mut metadata_file = OpenOptions::new() in make_metadata_file()
Daidl.rs82 use std::fs::{canonicalize, read_dir, remove_file, File, OpenOptions};
750 let file = OpenOptions::new() in write_zero_filler()
/packages/modules/Virtualization/libs/devicemapper/src/
Dloopdevice.rs29 use std::fs::{File, OpenOptions};
110 let ctrl_file = OpenOptions::new() in try_attach()
118 let backing_file = OpenOptions::new() in try_attach()
141 let device_file = OpenOptions::new() in try_attach()
154 let device_file = OpenOptions::new().read(true).write(true).open(&path)?; in detach()
Dlib.rs35 use std::fs::{File, OpenOptions};
146 let f = OpenOptions::new() in new()
240 use std::fs::{read, File, OpenOptions};
270 let mut f = OpenOptions::new().read(true).write(true).open(path).unwrap(); in write_to_dev()
/packages/modules/Virtualization/authfs/tests/common/src/
Dopen_then_run.rs25 use std::fs::OpenOptions;
108 OpenOptions::new() in parse_args()
117 OpenOptions::new() in parse_args()
129 OpenOptions::new() in parse_args()
/packages/modules/Virtualization/microdroid_manager/src/
Dswap.rs18 use std::fs::{read_to_string, OpenOptions};
54 let mut f = OpenOptions::new().read(false).write(true).open(format!("/dev/{}", dev))?; in mkswap()
92 OpenOptions::new() in init_swap()
Dverify.rs28 use std::fs::OpenOptions;
228 OpenOptions::new() in write_apex_payload_data()
Dinstance.rs43 use std::fs::{File, OpenOptions};
89 let mut file = OpenOptions::new() in new()
Dmain.rs57 use std::fs::{self, create_dir, File, OpenOptions};
145 OpenOptions::new().read(false).write(true).open(FAILURE_SERIAL_DEVICE)?.write_all(chunk)?; in write_death_reason_to_serial()
/packages/modules/Virtualization/vm/src/
Dcreate_idsig.rs20 use std::fs::{File, OpenOptions};
30 let idsig_file = OpenOptions::new() in command_create_idsig()
Dcreate_partition.rs22 use std::fs::OpenOptions;
32 let image = OpenOptions::new() in command_create_partition()
/packages/modules/Virtualization/authfs/src/fusefs/
Dmount.rs18 use std::fs::OpenOptions;
41 let dev_fuse = OpenOptions::new() in mount_and_enter_message_loop()
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Duhid_hfp.rs6 use std::fs::{File, OpenOptions};
115 let mut options = OpenOptions::new(); in create()
/packages/modules/Virtualization/service_vm/manager/src/
Dlib.rs31 use std::fs::{self, File, OpenOptions};
271 return Ok(OpenOptions::new() in instance_img()
277 let instance_img = OpenOptions::new() in instance_img()
/packages/modules/Virtualization/compos/composd/src/
Dinstance_starter.rs139 let instance_image = fs::OpenOptions::new() in start_vm()
167 let instance_image = fs::OpenOptions::new() in create_instance_image()
Dodrefresh_task.rs39 use std::fs::{remove_dir_all, File, OpenOptions};
253 OpenOptions::new() in open_dir()
/packages/modules/Virtualization/authfs/service/src/
Dauthfs.rs23 use std::fs::{remove_dir, OpenOptions};
59 let file = OpenOptions::new().read(true).write(writable).open(&path).map_err(|e| { in openFile()
/packages/modules/Virtualization/encryptedstore/src/
Dmain.rs26 use std::fs::{create_dir_all, OpenOptions};
132 let mut file = OpenOptions::new() in needs_formatting()
/packages/modules/Virtualization/libs/vmconfig/src/
Dlib.rs31 use std::fs::{File, OpenOptions};
194 OpenOptions::new() in open_parcel_file()
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs165 use std::fs::{File, OpenOptions};
302 let f = OpenOptions::new().read(true).write(true).open(ctx.data_backing_file).unwrap(); in tampered_apk()
321 let f = OpenOptions::new().read(true).write(true).open(ctx.hash_backing_file).unwrap(); in tampered_idsig()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs31 use std::fs::{File, OpenOptions};
95 let dev_fuse = OpenOptions::new().read(true).write(true).open("/dev/fuse")?; in run_fuse()
254 ) -> io::Result<(Option<Self::Handle>, fuse::filesystem::OpenOptions)> { in open() argument
295 Ok((Some(handle), fuse::filesystem::OpenOptions::empty())) in open()
365 ) -> io::Result<(Option<Self::Handle>, fuse::filesystem::OpenOptions)> { in opendir() argument
383 Ok((Some(handle), fuse::filesystem::OpenOptions::CACHE_DIR)) in opendir()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs204 use std::fs::{self, OpenOptions};
261 let file = OpenOptions::new() in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs25 use fuse::sys::OpenOptions as FuseOpenOptions;