Searched refs:id_str_size (Results 1 – 2 of 2) sorted by relevance
90 int i, id_str_size, name_size; in qcow2_do_read_snapshots() local128 id_str_size = be16_to_cpu(h.id_str_size); in qcow2_do_read_snapshots()199 sn->id_str = g_malloc(id_str_size + 1); in qcow2_do_read_snapshots()200 ret = bdrv_co_pread(bs->file, offset, id_str_size, sn->id_str, 0); in qcow2_do_read_snapshots()205 offset += id_str_size; in qcow2_do_read_snapshots()206 sn->id_str[id_str_size] = '\0'; in qcow2_do_read_snapshots()219 table_length += sizeof(h) + sn->extra_data_size + id_str_size + in qcow2_do_read_snapshots()277 int i, name_size, id_str_size, snapshots_size; in qcow2_write_snapshots() local346 id_str_size = strlen(sn->id_str); in qcow2_write_snapshots()348 assert(id_str_size <= UINT16_MAX && name_size <= UINT16_MAX); in qcow2_write_snapshots()[all …]
191 uint16_t id_str_size; member