qemu-img snapshot: Use writeback caching
None of the other qemu-img subcommands uses writethrough, and there's no reason why snapshot should be special. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
653df36bbe
commit
710da702be
|
@ -1068,7 +1068,7 @@ static int img_snapshot(int argc, char **argv)
|
||||||
int action = 0;
|
int action = 0;
|
||||||
qemu_timeval tv;
|
qemu_timeval tv;
|
||||||
|
|
||||||
bdrv_oflags = BDRV_O_RDWR;
|
bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR;
|
||||||
/* Parse commandline parameters */
|
/* Parse commandline parameters */
|
||||||
for(;;) {
|
for(;;) {
|
||||||
c = getopt(argc, argv, "la:c:d:h");
|
c = getopt(argc, argv, "la:c:d:h");
|
||||||
|
|
Loading…
Reference in New Issue