Home
last modified time | relevance | path

Searched refs:backing_file (Results 1 – 7 of 7) sorted by relevance

/external/libbrillo/brillo/blkdev_utils/
Dloop_device_fake.cc83 loop_device_vector[device_number].backing_file = in StubIoctlRunner()
93 device->backing_file = loop_device_vector[device_number].backing_file; in StubIoctlRunner()
107 const base::FilePath& backing_file) { in AttachDeviceToFile() argument
112 reinterpret_cast<uint64_t>(&backing_file), 0) < 0) in AttachDeviceToFile()
116 return std::make_unique<LoopDevice>(device_number, backing_file, in AttachDeviceToFile()
132 device_number, device.backing_file, base::Bind(&StubIoctlRunner))); in SearchLoopDevicePaths()
141 i, device.backing_file, base::Bind(&StubIoctlRunner))); in SearchLoopDevicePaths()
Dloop_device.cc88 base::FilePath backing_file = loopdev_path.Append(kLoopBackingFile); in GetBackingFile() local
91 if (!base::ReadFileToString(backing_file, &backing_file_content)) in GetBackingFile()
106 const base::FilePath& backing_file, in LoopDevice() argument
109 backing_file_(backing_file), in LoopDevice()
166 const base::FilePath& backing_file) { in AttachDeviceToFile() argument
179 HANDLE_EINTR(open(backing_file.value().c_str(), O_RDWR))); in AttachDeviceToFile()
198 return CreateLoopDevice(device_number, backing_file); in AttachDeviceToFile()
267 int device_number, const base::FilePath& backing_file) { in CreateLoopDevice() argument
268 return std::make_unique<LoopDevice>(device_number, backing_file, loop_ioctl_); in CreateLoopDevice()
Dloop_device.h40 const base::FilePath& backing_file,
88 const base::FilePath& backing_file);
109 int device_number, const base::FilePath& backing_file);
Dloop_device_fake.h18 base::FilePath backing_file; member
27 const base::FilePath& backing_file) override;
/external/crosvm/disk/src/qcow/
Dmod.rs269 pub fn create_for_size_and_path(size: u64, backing_file: Option<&str>) -> Result<QcowHeader> { in create_for_size_and_path()
274 if let Some(path) = backing_file { in create_for_size_and_path()
288 backing_file_offset: (if backing_file.is_none() { in create_for_size_and_path()
293 backing_file_size: backing_file.map_or(0, |x| x.len()) as u32, in create_for_size_and_path()
323 backing_file_path: backing_file.map(String::from), in create_for_size_and_path()
417 backing_file: Option<Box<dyn DiskFile>>, field
446 let backing_file = if let Some(backing_file_path) = header.backing_file_path.as_ref() { in from() localVariable
452 let backing_file = create_disk_file(backing_raw_file) in from() localVariable
454 Some(backing_file) in from()
559 backing_file, in from()
[all …]
/external/autotest/client/common_lib/
Dbase_job_unittest.py494 self.backing_file = tempfile.mktemp()
496 self.state.set_backing_file(self.backing_file)
500 if os.path.exists(self.backing_file):
501 os.remove(self.backing_file)
507 written_state.read_from_file(self.backing_file)
515 written_state.read_from_file(self.backing_file)
523 written_state.read_from_file(self.backing_file)
/external/crosvm/src/
Dmain.rs2099 let mut backing_file: Option<String> = None; in create_qcow2() localVariable
2123 backing_file = value.map(|x| x.to_owned()); in create_qcow2()
2132 if file_path.is_empty() || !(size.is_some() ^ backing_file.is_some()) { in create_qcow2()
2151 match (size, backing_file) { in create_qcow2()
2155 (None, Some(backing_file)) => { in create_qcow2()
2156 QcowFile::new_from_backing(file, &backing_file).map_err(|e| { in create_qcow2()