Home
last modified time | relevance | path

Searched refs:nb_snapshots (Results 1 – 5 of 5) sorted by relevance

/external/qemu/block/
Dqcow2-snapshot.c54 for(i = 0; i < s->nb_snapshots; i++) { in qcow2_free_snapshots()
60 s->nb_snapshots = 0; in qcow2_free_snapshots()
72 if (!s->nb_snapshots) { in qcow2_read_snapshots()
79 s->snapshots = qemu_mallocz(s->nb_snapshots * sizeof(QCowSnapshot)); in qcow2_read_snapshots()
80 for(i = 0; i < s->nb_snapshots; i++) { in qcow2_read_snapshots()
131 for(i = 0; i < s->nb_snapshots; i++) { in qcow_write_snapshots()
146 for(i = 0; i < s->nb_snapshots; i++) { in qcow_write_snapshots()
177 data32 = cpu_to_be32(s->nb_snapshots); in qcow_write_snapshots()
178 if (bdrv_pwrite_sync(bs->file, offsetof(QCowHeader, nb_snapshots), in qcow_write_snapshots()
198 for(i = 0; i < s->nb_snapshots; i++) { in find_new_snapshot_id()
[all …]
Dqcow2.h66 uint32_t nb_snapshots; member
117 int nb_snapshots; member
Dqcow2.c160 be32_to_cpus(&header.nb_snapshots); in qcow_open()
186 s->nb_snapshots = header.nb_snapshots; in qcow_open()
1120 if (s->nb_snapshots) { in qcow2_truncate()
Dqcow2-refcount.c1129 for(i = 0; i < s->nb_snapshots; i++) { in qcow2_check_refcounts()
/external/qemu/android/
Dsnapshot.c240 snapshot_print_table( int fd, uint32_t nb_snapshots, uint64_t snapshots_offset ) in snapshot_print_table() argument
250 for (i = 0; i < nb_snapshots; i++) { in snapshot_print_table()
290 snapshot_read_qcow_header( int fd, uint32_t *nb_snapshots, uint64_t *snapshots_offset ) in snapshot_read_qcow_header() argument
297 read_or_die(fd, nb_snapshots, sizeof(*nb_snapshots)); in snapshot_read_qcow_header()
301 be32_to_cpus(nb_snapshots); in snapshot_read_qcow_header()
319 uint32_t nb_snapshots; in snapshot_print_and_exit() local
321 snapshot_read_qcow_header(fd, &nb_snapshots, &snapshots_offset); in snapshot_print_and_exit()
323 if (nb_snapshots > 0) { in snapshot_print_and_exit()
325 snapshot_print_table(fd, nb_snapshots, snapshots_offset); in snapshot_print_and_exit()