Lines Matching refs:id_str_size
34 uint16_t id_str_size; member
68 int i, id_str_size, name_size; in qcow2_read_snapshots() local
94 id_str_size = be16_to_cpu(h.id_str_size); in qcow2_read_snapshots()
99 sn->id_str = qemu_malloc(id_str_size + 1); in qcow2_read_snapshots()
100 if (bdrv_pread(bs->file, offset, sn->id_str, id_str_size) != id_str_size) in qcow2_read_snapshots()
102 offset += id_str_size; in qcow2_read_snapshots()
103 sn->id_str[id_str_size] = '\0'; in qcow2_read_snapshots()
124 int i, name_size, id_str_size, snapshots_size; in qcow_write_snapshots() local
156 id_str_size = strlen(sn->id_str); in qcow_write_snapshots()
158 h.id_str_size = cpu_to_be16(id_str_size); in qcow_write_snapshots()
164 if (bdrv_pwrite_sync(bs->file, offset, sn->id_str, id_str_size) < 0) in qcow_write_snapshots()
166 offset += id_str_size; in qcow_write_snapshots()
192 char *id_str, int id_str_size) in find_new_snapshot_id() argument
204 snprintf(id_str, id_str_size, "%d", id_max + 1); in find_new_snapshot_id()