Home
last modified time | relevance | path

Searched refs:disk_size (Results 1 – 8 of 8) sorted by relevance

/external/crosvm/devices/src/virtio/
Dblock.rs256 disk_size: Arc<Mutex<u64>>, field
269 disk_size: u64, in process_one_request()
294 disk_size, in process_one_request()
320 let disk_size = self.disk_size.lock(); in process_queue() localVariable
331 *disk_size, in process_queue()
372 let mut disk_size = self.disk_size.lock(); in resize() localVariable
373 *disk_size = new_disk_size; in resize()
500 disk_size: Arc<Mutex<u64>>, field
510 fn build_config_space(disk_size: u64, seg_max: u32, block_size: u32) -> virtio_blk_config { in build_config_space()
513 capacity: Le64::from(disk_size >> SECTOR_SHIFT), in build_config_space()
[all …]
Dblock_async.rs238 disk_size: Arc<AtomicU64>, field
440 disk_state.disk_size.store(new_disk_size, Ordering::Release); in resize()
568 disk_size: Arc<AtomicU64>, field
578 fn build_config_space(disk_size: u64, seg_max: u32, block_size: u32) -> virtio_blk_config { in build_config_space()
581 capacity: Le64::from(disk_size >> SECTOR_SHIFT), in build_config_space()
613 let disk_size = disk_image.get_len()?; in new() localVariable
614 if disk_size % block_size as u64 != 0 { in new()
618 disk_size, block_size, in new()
647 disk_size: Arc::new(AtomicU64::new(disk_size)), in new()
688 disk_size: u64, in execute_request()
[all …]
/external/mtools/
Dinit.c255 int disk_size = 0; /* In case we don't happen to set this below */ in fs_init() local
360 disk_size = (dev.tracks) ? cylinder_size : 512; in fs_init()
362 disk_size = (dev.tracks) ? dev.sectors : 512; in fs_init()
369 disk_size = 0; in fs_init()
373 disk_size = cylinder_size; in fs_init()
377 if(disk_size > 256) { in fs_init()
378 disk_size = dev.sectors; in fs_init()
380 disk_size <<= 1; in fs_init()
383 if (disk_size % 2) in fs_init()
384 disk_size *= 2; in fs_init()
[all …]
DNEWS1111 init.c: fs_init(): initialized disk_size to 0. The section
/external/autotest/client/site_tests/hardware_DiskSize/
Dhardware_DiskSize.py77 disk_size = utils.get_disk_size(root_dev)
78 if not disk_size:
83 gb = float(disk_size) / (10 ** 9)
/external/crosvm/disk/src/
Ddisk.rs270 let disk_size = f.get_len().map_err(Error::SeekingFile)?; in detect_image_type() localVariable
277 let magic_read_len = if disk_size > MAGIC_BLOCK_SIZE as u64 { in detect_image_type()
282 disk_size as usize in detect_image_type()
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_test.py2082 disk_size = 1024 * 1024 * 1024
2084 self.filesystem.set_disk_usage(disk_size, real_dir_path)
2089 self.assertEqual(disk_size,
2096 self.assertGreater(disk_size,
2100 disk_size = 1024 * 1024 * 1024
2101 self.filesystem.set_disk_usage(disk_size, self.pyfakefs_path)
2106 self.assertGreater(disk_size, self.filesystem.get_disk_usage(
/external/cros/system_api/dbus/vm_concierge/
Dservice.proto212 uint64 disk_size = 3; field