Home | History | Annotate | Download | only in block

Lines Matching defs:l1_table_offset

31     uint64_t l1_table_offset;
86 sn->l1_table_offset = be64_to_cpu(h.l1_table_offset);
149 h.l1_table_offset = cpu_to_be64(sn->l1_table_offset);
241 int64_t l1_table_offset;
265 ret = qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 1);
270 l1_table_offset = qcow2_alloc_clusters(bs, s->l1_size * sizeof(uint64_t));
271 if (l1_table_offset < 0) {
275 sn->l1_table_offset = l1_table_offset;
287 if (bdrv_pwrite_sync(bs->file, sn->l1_table_offset,
325 if (qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, -1) < 0)
334 if (bdrv_pread(bs->file, sn->l1_table_offset,
337 if (bdrv_pwrite_sync(bs->file, s->l1_table_offset,
344 if (qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 1) < 0)
366 ret = qcow2_update_snapshot_refcount(bs, sn->l1_table_offset, sn->l1_size, -1);
370 ret = qcow2_update_snapshot_refcount(bs, s->l1_table_offset, s->l1_size, 0);
373 qcow2_free_clusters(bs, sn->l1_table_offset, sn->l1_size * sizeof(uint64_t));