Searched refs:disk_size (Results 1 – 14 of 14) sorted by relevance
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 264 | 36 def init_vm(self, disk_size): argument 37 qemu_img_create('-f', iotests.imgfmt, disk_a, str(disk_size)) 38 qemu_img_create('-f', iotests.imgfmt, disk_b, str(disk_size)) 41 self.vm.hmp_qemu_io('drive0', 'write 0 {}'.format(disk_size))
|
| H A D | 165 | 28 disk_size = 0x40000000 # 1G variable 40 qemu_img('create', '-f', iotests.imgfmt, disk, str(disk_size))
|
| /openbmc/qemu/block/ |
| H A D | vdi.c | 165 uint64_t disk_size; member 207 header->disk_size = le64_to_cpu(header->disk_size); in vdi_header_to_cpu() 231 header->disk_size = cpu_to_le64(header->disk_size); in vdi_header_to_le() 259 header->disk_size, header->disk_size / MiB); in vdi_header_print() 402 if (header.disk_size > VDI_DISK_SIZE_MAX) { in vdi_open() 405 header.disk_size, VDI_DISK_SIZE_MAX); in vdi_open() 413 if (header.disk_size % SECTOR_SIZE != 0) { in vdi_open() 417 logout("odd disk size %" PRIu64 " B, round up\n", header.disk_size); in vdi_open() 418 header.disk_size = ROUND_UP(header.disk_size, SECTOR_SIZE); in vdi_open() 454 } else if (header.disk_size > in vdi_open() [all …]
|
| H A D | qcow2-snapshot.c | 163 if (sn->extra_data_size >= endof(QCowSnapshotExtraData, disk_size)) { in qcow2_do_read_snapshots() 164 sn->disk_size = be64_to_cpu(extra.disk_size); in qcow2_do_read_snapshots() 166 sn->disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_do_read_snapshots() 343 extra.disk_size = cpu_to_be64(sn->disk_size); in qcow2_write_snapshots() 539 sizeof_field(QCowSnapshotExtraData, disk_size)) in qcow2_check_read_snapshot_table() 664 sn->disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_snapshot_create() 789 if (sn->disk_size != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_snapshot_goto() 798 ret = blk_truncate(blk, sn->disk_size, true, PREALLOC_MODE_OFF, 0, in qcow2_snapshot_goto()
|
| H A D | qcow2.h | 208 uint64_t disk_size; member 218 uint64_t disk_size; member
|
| H A D | qcow2.c | 5482 s->snapshots[i].disk_size != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_downgrade() 5588 sizeof_field(QCowSnapshotExtraData, disk_size)) in qcow2_upgrade()
|
| /openbmc/openbmc/poky/meta/recipes-core/initrdscripts/files/ |
| H A D | init-install-efi-testfs.sh | 72 disk_size=$(parted /dev/${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "… 74 testfs_size=$((disk_size*testfs_ratio/100)) 75 rootfs_size=$((disk_size-boot_size-testfs_size))
|
| H A D | init-install-testfs.sh | 97 disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") 99 testfs_size=$((disk_size*testfs_ratio/100)) 100 rootfs_size=$((disk_size-boot_size-testfs_size))
|
| H A D | init-install-efi.sh | 148 disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB/… 150 swap_size=$((disk_size*swap_ratio/100)) 151 rootfs_size=$((disk_size-boot_size-swap_size))
|
| H A D | init-install.sh | 144 disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB/… 156 swap_size=$((disk_size*swap_ratio/100)) 157 rootfs_size=$((disk_size-bios_boot_size-boot_size-swap_size))
|
| /openbmc/qemu/docs/ |
| H A D | qcow2-cache.txt | 85 disk_size = l2_cache_size * cluster_size / 8 86 disk_size = refcount_cache_size * cluster_size * 8 / refcount_bits 91 disk_size = l2_cache_size * 8192 92 disk_size = refcount_cache_size * 32768 235 disk_size = l2_cache_size * cluster_size / 16 239 l2_cache_size = disk_size * 16 / cluster_size
|
| /openbmc/qemu/scripts/ |
| H A D | qcow2-to-stdout.py | 165 disk_size = align_up(os.path.getsize(input_file), 512) 166 total_data_clusters = math.ceil(disk_size / cluster_size) 274 disk_size,
|
| /openbmc/openbmc/poky/scripts/lib/wic/ |
| H A D | partition.py | 119 def disk_size(self): member in Partition 440 size = self.disk_size 464 size = self.disk_size 482 blocks = self.disk_size
|
| /openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/ |
| H A D | direct.py | 381 part.size_sec = part.disk_size * 1024 // self.sector_size
|