Lines Matching refs:snapshots
55 qemu_free(s->snapshots[i].name);
56 qemu_free(s->snapshots[i].id_str);
58 qemu_free(s->snapshots);
59 s->snapshots = NULL;
73 s->snapshots = NULL;
79 s->snapshots = qemu_mallocz(s->nb_snapshots * sizeof(QCowSnapshot));
85 sn = s->snapshots + i;
118 /* add at the end of the file a new list of snapshots */
129 /* compute the size of the snapshots */
132 sn = s->snapshots + i;
147 sn = s->snapshots + i;
199 sn = s->snapshots + i;
213 if (!strcmp(s->snapshots[i].id_str, id_str))
228 if (!strcmp(s->snapshots[i].name, name))
294 if (s->snapshots) {
295 memcpy(snapshots1, s->snapshots, s->nb_snapshots * sizeof(QCowSnapshot));
296 qemu_free(s->snapshots);
298 s->snapshots = snapshots1;
299 s->snapshots[s->nb_snapshots++] = *sn;
323 sn = &s->snapshots[snapshot_index];
364 sn = &s->snapshots[snapshot_index];
405 sn = s->snapshots + i;