qcow2-snapshot.c | 34 uint16_t id_str_size; member in struct:QCowSnapshotHeader 68 int i, id_str_size, name_size; local 94 id_str_size = be16_to_cpu(h.id_str_size); 99 sn->id_str = g_malloc(id_str_size + 1); 100 if (bdrv_pread(bs->file, offset, sn->id_str, id_str_size) != id_str_size) 102 offset += id_str_size; 103 sn->id_str[id_str_size] = '\0'; 124 int i, name_size, id_str_size, snapshots_size local [all...] |