Home
last modified time | relevance | path

Searched refs:id_str_size (Results 1 – 2 of 2) sorted by relevance

/external/qemu/block/
Dqcow2-snapshot.c34 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()
[all …]
/external/qemu/android/
Dsnapshot.c122 uint16_t id_str_size, name_size; in snapshot_info_read() local
126 read_or_die(fd, &id_str_size, sizeof(id_str_size)); in snapshot_info_read()
135 be16_to_cpus(&id_str_size); in snapshot_info_read()
145 info->id_str = android_alloc(id_str_size + 1); // +1: manual null-termination in snapshot_info_read()
148 read_or_die(fd, info->id_str, id_str_size); in snapshot_info_read()
151 info->id_str[id_str_size] = '\0'; in snapshot_info_read()