Searched refs:backing_file (Results 1 – 8 of 8) sorted by relevance
/external/libbrillo/brillo/blkdev_utils/ |
D | loop_device_fake.cc | 83 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()
|
D | loop_device.cc | 88 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()
|
D | loop_device.h | 40 const base::FilePath& backing_file, 88 const base::FilePath& backing_file); 109 int device_number, const base::FilePath& backing_file);
|
D | loop_device_fake.h | 18 base::FilePath backing_file; member 27 const base::FilePath& backing_file) override;
|
/external/crosvm/disk/src/qcow/ |
D | mod.rs | 277 pub fn create_for_size_and_path(size: u64, backing_file: Option<&str>) -> Result<QcowHeader> { in create_for_size_and_path() 282 if let Some(path) = backing_file { in create_for_size_and_path() 296 backing_file_offset: (if backing_file.is_none() { in create_for_size_and_path() 301 backing_file_size: backing_file.map_or(0, |x| x.len()) as u32, in create_for_size_and_path() 331 backing_file_path: backing_file.map(String::from), in create_for_size_and_path() 426 backing_file: Option<Box<dyn DiskFile>>, field 457 let backing_file = if let Some(backing_file_path) = header.backing_file_path.as_ref() { in from() localVariable 466 let backing_file = create_disk_file( in from() localVariable 473 Some(backing_file) in from() 578 backing_file, in from() [all …]
|
/external/crosvm/src/ |
D | main.rs | 391 if !(cmd.size.is_some() ^ cmd.backing_file.is_some()) { in create_qcow2() 409 match (cmd.size, cmd.backing_file) { in create_qcow2() 413 (None, Some(backing_file)) => { in create_qcow2() 414 QcowFile::new_from_backing(file, &backing_file, disk::MAX_NESTING_DEPTH).map_err( in create_qcow2()
|
/external/autotest/client/common_lib/ |
D | base_job_unittest.py | 523 self.backing_file = tempfile.mktemp() 525 self.state.set_backing_file(self.backing_file) 529 if os.path.exists(self.backing_file): 530 os.remove(self.backing_file) 536 written_state.read_from_file(self.backing_file) 544 written_state.read_from_file(self.backing_file) 552 written_state.read_from_file(self.backing_file)
|
/external/crosvm/src/crosvm/ |
D | cmdline.rs | 237 pub backing_file: Option<String>, field
|