/openbmc/qemu/block/ |
H A D | qcow2-snapshot.c | 120 sn->l1_table_offset = be64_to_cpu(h.l1_table_offset); in qcow2_do_read_snapshots() 328 h.l1_table_offset = cpu_to_be64(sn->l1_table_offset); in qcow2_write_snapshots() 645 int64_t l1_table_offset; in qcow2_snapshot_create() local 674 if (l1_table_offset < 0) { in qcow2_snapshot_create() 675 ret = l1_table_offset; in qcow2_snapshot_create() 679 sn->l1_table_offset = l1_table_offset; in qcow2_snapshot_create() 840 ret = qcow2_update_snapshot_refcount(bs, sn->l1_table_offset, in qcow2_snapshot_goto() 869 ret = qcow2_update_snapshot_refcount(bs, s->l1_table_offset, in qcow2_snapshot_goto() 961 ret = qcow2_update_snapshot_refcount(bs, sn.l1_table_offset, in qcow2_snapshot_delete() 1056 ret = bdrv_pread(bs->file, sn->l1_table_offset, new_l1_bytes, in qcow2_snapshot_load_tmp() [all …]
|
H A D | qcow.c | 67 uint64_t l1_table_offset; member 79 uint64_t l1_table_offset; member 143 header.l1_table_offset = be64_to_cpu(header.l1_table_offset); in qcow_open() 256 s->l1_table_offset = header.l1_table_offset; in qcow_open() 264 ret = bdrv_pread(bs->file, s->l1_table_offset, in qcow_open() 389 s->l1_table_offset + l1_index * sizeof(tmp), in get_cluster_offset() 882 header.l1_table_offset = cpu_to_be64(header_size); in qcow_co_create() 1037 if (bdrv_pwrite_sync(bs->file, s->l1_table_offset, l1_length, s->l1_table, in qcow_make_empty() 1040 ret = bdrv_truncate(bs->file, s->l1_table_offset + l1_length, false, in qcow_make_empty()
|
H A D | qed-table.c | 118 return qed_read_table(s, s->header.l1_table_offset, s->l1_table); in qed_read_l1_table_sync() 126 return qed_write_table(s, s->header.l1_table_offset, in qed_write_l1_table()
|
H A D | qcow2.h | 163 uint64_t l1_table_offset; member 188 uint64_t l1_table_offset; member 214 uint64_t l1_table_offset; member 343 uint64_t l1_table_offset; member 885 qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset,
|
H A D | qcow2-refcount.c | 1245 int64_t l1_table_offset, int l1_size, int addend) in qcow2_update_snapshot_refcount() argument 1268 if (l1_table_offset != s->l1_table_offset) { in qcow2_update_snapshot_refcount() 1276 ret = bdrv_pread(bs->file, l1_table_offset, l1_size2, l1_table, 0); in qcow2_update_snapshot_refcount() 1437 ret = bdrv_pwrite_sync(bs->file, l1_table_offset, l1_size2, l1_table, in qcow2_update_snapshot_refcount() 1865 int64_t l1_table_offset, int l1_size, in check_refcounts_l1() argument 1880 l1_table_offset, l1_size_bytes); in check_refcounts_l1() 2244 if (offset_into_cluster(s, sn->l1_table_offset)) { in calculate_refcounts() 2259 sn->l1_table_offset, sn->l1_size, 0, fix, in calculate_refcounts() 2943 if (overlaps_with(s->l1_table_offset, s->l1_size * L1E_SIZE)) { in qcow2_check_metadata_overlap() 2964 overlaps_with(s->snapshots[i].l1_table_offset, in qcow2_check_metadata_overlap() [all …]
|
H A D | qed.c | 66 cpu->l1_table_offset = le64_to_cpu(le->l1_table_offset); in qed_header_le_to_cpu() 81 le->l1_table_offset = cpu_to_le64(cpu->l1_table_offset); in qed_header_cpu_to_le() 447 if (!qed_check_table_offset(s, s->header.l1_table_offset)) { in bdrv_qed_do_open() 710 .l1_table_offset = qed_opts->cluster_size, in bdrv_qed_co_create() 750 ret = blk_co_pwrite(blk, header.l1_table_offset, l1_size, l1_table, 0); in bdrv_qed_co_create()
|
H A D | qed-check.c | 118 qed_set_used_clusters(check, s->header.l1_table_offset, in qed_check_l1_table()
|
H A D | qed.h | 97 uint64_t l1_table_offset; /* in bytes */ member
|
H A D | qcow2-cluster.c | 53 s->l1_table_offset + new_l1_size * L1E_SIZE, in qcow2_shrink_l1_table() 181 old_l1_table_offset = s->l1_table_offset; in qcow2_grow_l1_table() 182 s->l1_table_offset = new_l1_table_offset; in qcow2_grow_l1_table() 247 s->l1_table_offset + L1E_SIZE * l1_start_index, bufsize, false); in qcow2_write_l1_entry() 254 s->l1_table_offset + L1E_SIZE * l1_start_index, in qcow2_write_l1_entry() 2505 ret = qcow2_validate_table(bs, s->snapshots[i].l1_table_offset, in qcow2_expand_zero_clusters() 2524 ret = bdrv_pread(bs->file, s->snapshots[i].l1_table_offset, l1_size2, in qcow2_expand_zero_clusters()
|
H A D | qcow2.c | 1343 header.l1_table_offset = be64_to_cpu(header.l1_table_offset); in qcow2_do_open() 1572 ret = qcow2_validate_table(bs, header.l1_table_offset, in qcow2_do_open() 1579 s->l1_table_offset = header.l1_table_offset; in qcow2_do_open() 1604 ret = bdrv_co_pread(bs->file, s->l1_table_offset, s->l1_size * L1E_SIZE, in qcow2_do_open() 2962 .l1_table_offset = cpu_to_be64(s->l1_table_offset), in qcow2_update_header() 3721 .l1_table_offset = cpu_to_be64(0), in qcow2_co_create() 4902 ret = bdrv_pwrite_zeroes(bs->file, s->l1_table_offset, in make_completely_empty() 4935 ret = bdrv_pwrite_sync(bs->file, offsetof(QCowHeader, l1_table_offset), in make_completely_empty() 4941 s->l1_table_offset = 3 * s->cluster_size; in make_completely_empty()
|
H A D | vmdk.c | 149 int64_t l1_table_offset; member 578 extent->l1_table_offset = l1_offset; in vmdk_add_extent() 613 ret = bdrv_pread(extent->file, extent->l1_table_offset, l1_size, in vmdk_init_tables()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 031.out | 16 l1_table_offset 0x30000 44 l1_table_offset 0x30000 72 l1_table_offset 0x30000 107 l1_table_offset 0x30000 140 l1_table_offset 0x30000 173 l1_table_offset 0x30000
|
H A D | 061.out | 16 l1_table_offset 0x30000 40 l1_table_offset 0x30000 74 l1_table_offset 0x30000 98 l1_table_offset 0x30000 130 l1_table_offset 0x30000 159 l1_table_offset 0x30000 185 l1_table_offset 0x30000 209 l1_table_offset 0x30000 235 l1_table_offset 0x30000 254 l1_table_offset 0x30000 [all …]
|
H A D | 303.out | 37 l1_table_offset 0x30000 120 "l1_table_offset": 196608,
|
H A D | 044 | 50 h.l1_table_offset = off_l1
|
H A D | 163 | 67 fd.seek(h.l1_table_offset)
|
/openbmc/qemu/docs/interop/ |
H A D | qed_spec.txt | 27 uint64_t l1_table_offset; /* in bytes */ 43 * ''l1_table_offset'' is the offset of the first byte of the L1 table in the image file and must be… 138 The consistency check process starts by from ''l1_table_offset'' and scans all L2 tables. After th…
|
H A D | qcow2.txt | 70 40 - 47: l1_table_offset
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | fuzz.py | 212 def l1_table_offset(current): function
|
/openbmc/qemu/docs/ |
H A D | image-fuzzer.txt | 64 '[["feature_name_table"], ["header", "l1_table_offset"]]' 150 [['header', 'l1_table_offset'],
|