qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] About the snapshot
@ 2011-12-06  9:07 Zhi Hui Li
  2011-12-06  9:40 ` Stefan Hajnoczi
  0 siblings, 1 reply; 6+ messages in thread
From: Zhi Hui Li @ 2011-12-06  9:07 UTC (permalink / raw)
  To: Stefan Hajnoczi, QEMU-devel; +Cc: zhihuili


1) :

for example:

BDRVQcowState *s = bs->opaque;

s->snapshots
s->nb_snapshots


1:use the command:   qemu-img snapshot ./test.qcow2  -c aa
the memory of the s->snapshot don't free,
if the s->nb_snapshots is large, Does it have some problems.

2: use the command:  qemu-system-x86_64  ./test.qcow2 -snapshot
when the program ends, Does it need to free the s->snapshots ?




2):
in the function of
qcow2_update_snapshot_refcount

it has some "  goto fail  ";
if the function runs some times, then something makes it goto fail,
I am not sure whether it will make the refcount  incorrect.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-06 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06  9:07 [Qemu-devel] About the snapshot Zhi Hui Li
2011-12-06  9:40 ` Stefan Hajnoczi
2011-12-06 10:01   ` Zhi Hui Li
2011-12-06 10:33     ` Stefan Hajnoczi
2011-12-06 14:55       ` Zhi Hui Li
2011-12-06 15:35         ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).