Lines Matching full:sizeof
79 s->snapshots = qemu_mallocz(s->nb_snapshots * sizeof(QCowSnapshot));
82 if (bdrv_pread(bs->file, offset, &h, sizeof(h)) != sizeof(h))
84 offset += sizeof(h);
134 offset += sizeof(h);
148 memset(&h, 0, sizeof(h));
161 if (bdrv_pwrite_sync(bs->file, offset, &h, sizeof(h)) < 0)
163 offset += sizeof(h);
175 &data64, sizeof(data64)) < 0)
179 &data32, sizeof(data32)) < 0)
243 memset(sn, 0, sizeof(*sn));
247 find_new_snapshot_id(bs, sn_info->id_str, sizeof(sn_info->id_str));
270 l1_table_offset = qcow2_alloc_clusters(bs, s->l1_size * sizeof(uint64_t));
279 l1_table = qemu_malloc(s->l1_size * sizeof(uint64_t));
288 l1_table, s->l1_size * sizeof(uint64_t)) < 0)
293 snapshots1 = qemu_malloc((s->nb_snapshots + 1) * sizeof(QCowSnapshot));
295 memcpy(snapshots1, s->snapshots, s->nb_snapshots * sizeof(QCowSnapshot));
332 l1_size2 = s->l1_size * sizeof(uint64_t);
373 qcow2_free_clusters(bs, sn->l1_table_offset, sn->l1_size * sizeof(uint64_t));
377 memmove(sn, sn + 1, (s->nb_snapshots - snapshot_index - 1) * sizeof(*sn));
402 sn_tab = qemu_mallocz(s->nb_snapshots * sizeof(QEMUSnapshotInfo));
406 pstrcpy(sn_info->id_str, sizeof(sn_info->id_str),
408 pstrcpy(sn_info->name, sizeof(sn_info->name),