Home
last modified time | relevance | path

Searched full:disk (Results 1 – 25 of 892) sorted by relevance

12345678910>>...36

/openbmc/qemu/tests/qemu-iotests/tests/
H A Dinactive-node-nbd30 def get_export(node_name='disk-fmt', allow_inactive=None):
48 with iotests.FilePath('disk.img') as path, \
57 iotests.log('Preparing disk...')
67 vm.add_blockdev(f'file,node-name=disk-file,filename={path}')
68 vm.add_blockdev(f'{iotests.imgfmt},file=disk-file,node-name=disk-fmt,'
86 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt'))
88 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt'))
95 vm.qmp_log('blockdev-set-active', node_name='disk-fmt', active=False)
96 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt'))
98 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt'))
[all …]
H A Dinactive-node-nbd.out1 Preparing disk...
9 disk-fmt active: False
10 {"execute": "block-export-add", "arguments": {"id": "exp0", "node-name": "disk-fmt", "type": "nbd",…
12 disk-fmt active: True
14 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]}
21 {"execute": "blockdev-set-active", "arguments": {"active": false, "node-name": "disk-fmt"}}
23 disk-fmt active: False
24 …-add", "arguments": {"allow-inactive": false, "id": "exp0", "node-name": "disk-fmt", "type": "nbd"…
26 disk-fmt active: True
28 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]}
[all …]
H A Dqsd-migrate29 with iotests.FilePath('disk.img') as path, \
38 iotests.log('Preparing disk...')
43 '--blockdev', f'file,node-name=disk-file,filename={path}',
44 '--blockdev', f'{iotests.imgfmt},file=disk-file,node-name=disk-fmt',
46 '--export', 'nbd,id=exp0,node-name=disk-fmt,writable=true,'
52 vm_src.add_args('-blockdev', f'nbd,node-name=disk,server.type=unix,'
53 f'server.path={nbd_src},export=disk-fmt')
54 vm_src.add_args('-device', 'virtio-blk,drive=disk,id=virtio0')
59 '--blockdev', f'file,node-name=disk-file,filename={path},active=off',
60 '--blockdev', f'{iotests.imgfmt},file=disk-file,node-name=disk-fmt,'
[all …]
H A Diothreads-stream49 vm.add_blockdev(f'file,node-name=disk{i}-base-file,'
51 vm.add_blockdev(f'qcow2,node-name=disk{i}-base,file=disk{i}-base-file')
52 vm.add_blockdev(f'file,node-name=disk{i}-file,filename={snap_path}')
53 vm.add_blockdev(f'qcow2,node-name=disk{i},file=disk{i}-file,'
54 f'backing=disk{i}-base')
55 vm.add_device(f'scsi-hd,drive=disk{i}')
H A Diothreads-nbd-export34 iotests.log('Preparing disk...')
36 vm.add_args('-blockdev', f'file,node-name=disk-file,filename={path}')
37 vm.add_args('-blockdev', 'qcow2,node-name=disk,file=disk-file')
40 'virtio-blk,drive=disk,iothread=iothread0,share-rw=on')
51 node_name='disk', writable=True))
55 f'nbd+unix:///disk?socket={nbd_sock}')
/openbmc/qemu/docs/
H A Dblock-replication.txt21 executes till the next checkpoint. To support disk contents checkpoint,
22 the modified disk contents in the Secondary VM must be buffered, and are
24 effort during a vmstate checkpoint, the disk modification operations of
25 the Primary disk are asynchronously forwarded to the Secondary node.
38 |---------(1)----------+ | Disk Buffer |
46 | Primary Disk | | Secondary Disk |
51 2) Before Primary write requests are written to Secondary disk, the
52 original sector content will be read from Secondary disk and
53 buffered in the Disk buffer, but it will not overwrite the existing
55 previous COW of "Primary Write Requests") in the Disk buffer.
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D185.out12 'arguments': { 'device': 'disk',
20 'qemu-io disk "write 0 4M"' } }
25 'arguments': { 'device': 'disk',
35 'arguments': { 'device': 'disk',
39 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
40 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
44 …croseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "paused", "id": "disk"}}
45 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
46 …croseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "paused", "id": "disk"}}
47 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
[all …]
H A D243.out7 Disk usage: low
13 Disk usage: low
19 Disk usage: high
25 Disk usage: high
32 qcow2 disk usage: low
33 data disk usage: low
40 qcow2 disk usage: low
41 data disk usage: low
48 qcow2 disk usage: low
49 data disk usage: high
[all …]
H A D24232 disk = file_path('disk') variable
41 img_info_log(disk, extra_args=extra_args)
42 result = qemu_img_info('--force-share', disk)
54 vm = iotests.VM().add_drive(disk)
64 qemu_io_log('-c', write, disk)
68 with open(disk, "r+b") as f:
77 qemu_img_create('-f', iotests.imgfmt, disk, '1M')
89 vm = iotests.VM().add_drive(disk)
98 qemu_img_create('-f', iotests.imgfmt, disk, '1M')
103 img_info_log(disk, check=False)
[all …]
H A D29825 disk = os.path.join(iotests.test_dir, 'disk') variable
28 drive_opts = f'node-name=disk,driver={iotests.imgfmt},' \
30 f'file.file.node-name=file,file.file.filename={disk}'
35 iotests.qemu_img_create('-f', iotests.imgfmt, disk, str(10 * MiB))
40 check = iotests.qemu_img_check(disk)
45 os.remove(disk)
48 self.assertTrue(os.path.getsize(disk) > 100 * MiB)
51 self.assertTrue(os.path.getsize(disk) < 10 * MiB)
83 self.vm.cmd('blockdev-snapshot-sync', node_name='disk',
100 'node-name': 'disk',
[all …]
H A D19627 disk = os.path.join(iotests.test_dir, 'disk') variable
35 os.remove(disk)
39 qemu_img('create', '-f', iotests.imgfmt, disk, '1M')
41 self.vm_a = iotests.VM(path_suffix='a').add_drive(disk)
44 self.vm_b = iotests.VM(path_suffix='b').add_drive(disk)
51 with open(disk, 'r+b') as f:
61 with open(disk, 'rb') as f:
H A D09164 _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},aio=${AIOMODE},id=disk
70 _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},aio=${AIOMODE},id=disk \
79 _send_qemu_cmd $h1 'qemu-io disk "write -P 0x22 0 4M"' "(qemu)"
80 echo "vm1: qemu-io disk write complete"
87 echo === VM 2: Post-migration, write to disk, verify running ===
90 _send_qemu_cmd $h2 'qemu-io disk "write 4M 1M"' "(qemu)"
91 echo "vm2: qemu-io disk write complete"
96 _send_qemu_cmd $h2 'qemu-io disk flush' "(qemu)"
H A D261.out17 Disk size: 67108864
35 Disk size: 67108864
42 Disk size: 67108864
50 Disk size: 67108864
70 Disk size: 67108864
77 Disk size: 67108864
85 Disk size: 67108864
97 Disk size: 67108864
104 Disk size: 67108864
112 Disk size: 67108864
[all …]
H A D30242 # Create source disk. Using qcow2 to enable strict comparing later, and
44 src_disk = file_path("disk.qcow2")
109 iotests.log("=== Comparing to source disk ===")
116 disk = tarfile.TarInfo("disk") variable
117 disk.size = actual_size
122 buf = disk.tobuf(tar.format, tar.encoding, tar.errors)
124 tar.members.append(disk)
128 tar.offset = offset + (disk.size + 511) & ~511
H A D051181 run_qemu -drive if=none,id=disk -device ide-cd,drive=disk
182 run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
183 run_qemu -drive if=none,id=disk -device ide-hd,drive=disk
184 run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
196 …,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -…
199 run_qemu $iothread -device ide-hd,drive=disk,share-rw=on
200 run_qemu $iothread -device virtio-blk-pci,drive=disk,share-rw=on
201 … run_qemu $iothread -device lsi53c895a,id=lsi0 -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on
202 …hread -device virtio-scsi,id=virtio-scsi1 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
207 run_qemu $iothread -device virtio-blk-pci,drive=disk,iothread=thread0,share-rw=on
[all …]
/openbmc/qemu/docs/system/
H A Dimages.rst3 Disk Images
6 QEMU supports many disk image formats, including growable disk images
8 encrypted disk images.
12 Quick start for disk image creation
15 You can create a disk image with the command::
19 where myimage.img is the disk image filename and mysize is its size in
30 If you use the option ``-snapshot``, all disk images are considered as
33 disk images by using the ``commit`` monitor command (or :kbd:`Ctrl+a s` in the
44 writable block device using the ``qcow2`` disk image format. Normally
64 ``info snapshots``) and a snapshot of every writable disk image. The VM
[all …]
/openbmc/openbmc/poky/meta/files/
H A Ddevice_table-minimal.txt14 /dev/hda b 660 root disk 3 0 - - -
15 /dev/hda b 660 root disk 3 1 1 1 4
19 /dev/mmcblk0 b 660 root disk 179 0 - - -
20 /dev/mmcblk0p b 660 root disk 179 1 1 1 4
21 /dev/mtd c 660 root disk 90 0 0 2 8
27 /dev/sda b 660 root disk 8 0 - - -
28 /dev/sda b 660 root disk 8 1 1 1 4
29 /dev/sdb b 660 root disk 8 16 - - -
30 /dev/sdb b 660 root disk 8 17 1 1 4
/openbmc/openbmc/meta-security/recipes-core/initrdscripts/initramfs-framework-dm/
H A Ddmverity21 while [ ! -b "/dev/disk/by-partuuid/${ROOT_UUID}" ]; do
34 /dev/disk/by-partuuid/${ROOT_UUID} \
35 /dev/disk/by-partuuid/${RHASH_UUID} \
46 RDEV="$(realpath /dev/disk/by-partuuid/${bootparam_root#PARTUUID=} 2>/dev/null)"
55 RDEV="$(realpath /dev/disk/by-id/${bootparam_root#ID=} 2>/dev/null)"
58 RDEV="$(realpath /dev/disk/by-label/${bootparam_root#LABEL=} 2>/dev/null)"
61 RDEV="$(realpath /dev/disk/by-partlabel/${bootparam_root#PARTLABEL=} 2>/dev/null)"
64 RDEV="$(realpath /dev/disk/by-partuuid/${bootparam_root#PARTUUID=} 2>/dev/null)"
67 RDEV="$(realpath /dev/disk/by-path/${bootparam_root#PATH=} 2>/dev/null)"
70 RDEV="$(realpath /dev/disk/by-uuid/${bootparam_root#UUID=} 2>/dev/null)"
/openbmc/qemu/docs/interop/
H A Dprl-xml.rst1 Parallels Disk Format
15 This specification contains minimal information about Parallels Disk Format,
24 A Parallels disk consists of two parts: the set of snapshots and the disk
45 the backing storage for a subset of the virtual disk. When
46 there is more than one storage in a Parallels disk then that
48 covers a specific address space area of the disk and has its
50 and are not supported. Each storage consists of disk
57 ``DiskDescriptor.xml`` stores information about disk parameters,
93 virtual disk and some general settings.
97 * ``Disk_size`` - number of sectors in the disk,
[all …]
H A Dlive-block-operations.rst15 be used to manipulate disk image chains to accomplish certain tasks,
17 disk image chains by merging data from overlays into backing files; live
18 synchronize data from a disk image chain (including current active disk)
34 Disk image backing chain notation
37 A simple disk image chain. (This can be created live using QMP
49 The arrow can be read as: Image [A] is the backing file of disk image
54 files in a disk image backing chain:
56 (1) Directional: 'base' and 'top'. Given the simple disk image chain
62 simple disk image chain from the above, disk image [A] is referred
119 disk to another image.
[all …]
/openbmc/u-boot/doc/
H A DREADME.sata3 There are two ways to operate the hard disk
5 * Read/write raw blocks from/to SATA hard disk
8 1.0 How to read the SATA hard disk's information?
13 Type: Hard Disk
17 1.1 How to raw write the kernel, file system, dtb to a SATA hard disk?
19 Notes: Hard disk sectors are normally 512 bytes, so
34 1.2 How to raw read the kernel, file system, dtb from a SATA hard disk?
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dmonitordisk.py12 logger.error("%s\n Disk space monitor will NOT be enabled" % info)
64 """Prepare disk data for disk space monitor"""
85 printErr("Unknown disk space monitor action: %s" % action)
93 # The disk space or inode is optional, but it should have a correct
99 … printErr("Invalid disk space value in BB_DISKMON_DIRS: %s" % pathSpaceInodeRe.group(3))
116 printErr("No disk space or inode value in found BB_DISKMON_DIRS: %s" % pathSpaceInode)
130 """ Get the disk space interval """
140 # The disk space or inode interval is optional, but it should
148 … printErr("Invalid disk space interval value in BB_DISKMON_WARNINTERVAL: %s" % intervalRe.group(1))
156 … printErr("Invalid disk inode interval value in BB_DISKMON_WARNINTERVAL: %s" % intervalRe.group(2))
[all …]
/openbmc/u-boot/lib/efi_loader/
H A Defi_disk.c3 * EFI application disk support
18 * struct efi_disk_obj - EFI disk object
21 * @ops: EFI disk I/O protocol interface
28 * @offset: offset into disk for simple partition
221 * Create a handle for a partition or disk
228 * @offset offset into disk for simple partitions
229 * @return disk object
239 struct efi_disk_obj **disk) in efi_disk_add_dev() argument
297 if (disk) in efi_disk_add_dev()
298 *disk = diskobj; in efi_disk_add_dev()
[all …]
/openbmc/qemu/hw/block/
H A Dxen-block.c67 * be no other disk or partition with the same disk number.
74 * The limit of xvdfan (disk 4095) is fairly arbitrary just to avoid a
87 int i, disk = 0; in xen_block_find_free_vdev() local
126 disk = vdev_to_diskno(vdev_nr); in xen_block_find_free_vdev()
127 if (disk < 0 || disk >= MAX_AUTO_VDEV) { in xen_block_find_free_vdev()
131 set_bit(disk, used_devs); in xen_block_find_free_vdev()
135 disk = find_first_zero_bit(used_devs, MAX_AUTO_VDEV); in xen_block_find_free_vdev()
136 if (disk == MAX_AUTO_VDEV) { in xen_block_find_free_vdev()
143 vdev->disk = disk; in xen_block_find_free_vdev()
144 if (disk < (1 << 4)) { in xen_block_find_free_vdev()
[all …]
/openbmc/libbej/test/json/
H A Dstorage.json42 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.1"
45 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.2"
48 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.3"
51 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.4"
54 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.5"
57 "@odata.id": "/redfish/v1/Chassis/StorageEnclosure1/Drives/Disk.Bay.6"

12345678910>>...36