Skip to contentSkip to conversation

snapshot mode is broken for raw images

Qemu-devel Victor Shkamerda 3 participants 4 messages Jul 30, 2010 – Feb 20, 2011

lore
Share & tools
lore
#0 lore raw

Public bug reported:

The snapshot mode is not working if you use raw format for image instead of qcow2. Create a raw disk image by running "dd of=xxx.img bs=1 count=0 seek=8G". Then run "qemu -snapshot xxx.img". In monitor console run "info block". There should be qcow2 temporary image backed by the raw image. Now run "commit ide0-hd0" and after that again "info block". You should see now that there is no more image, so any operations on it will fail form now on. This is for latest HEAD in git.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 9 lines
snapshot mode is broken for raw images
https://bugs.launchpad.net/bugs/611640
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
The snapshot mode is not working if you use raw format for image instead of qcow2. Create a raw disk image by running "dd of=xxx.img bs=1 count=0 seek=8G". Then run "qemu -snapshot xxx.img". In monitor console run "info block". There should be qcow2 temporary image backed by the raw image. Now run "commit ide0-hd0" and after that again "info block". You should see now that there is no more image, so any operations on it will fail form now on. This is for latest HEAD in git.
#1 lore raw
Quoted 10 lines · Victor Shkamerda

Public bug reported:

The snapshot mode is not working if you use raw format for image instead of qcow2. Create a raw disk image by running "dd of=xxx.img bs=1 count=0 seek=8G". Then run "qemu -snapshot xxx.img". In monitor console run "info block". There should be qcow2 temporary image backed by the raw image. Now run "commit ide0-hd0" and after that again "info block". You should see now that there is no more image, so any operations on it will fail form now on. This is for latest HEAD in git.

Quoted 3 lines

** Affects: qemu
Importance: Undecided
Status: New

git bisect points to

commit c33491978c5c4c746cc0272d5f2df50aa14d1f02

Author: Kevin Wolf <[email protected]>
Date:   Thu May 6 16:34:56 2010 +0200

block: Fix bdrv_commit

When reopening the image, don't guess the driver, but use the same driver as was used before. This is important if the format=... option was used for that image.

#2 lore raw
In reply to Victor Shkamerda

** Changed in: qemu
Status: New => Fix Committed

Signature · 9 lines
snapshot mode is broken for raw images
https://bugs.launchpad.net/bugs/611640
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Fix Committed

Bug description:
The snapshot mode is not working if you use raw format for image instead of qcow2. Create a raw disk image by running "dd of=xxx.img bs=1 count=0 seek=8G". Then run "qemu -snapshot xxx.img". In monitor console run "info block". There should be qcow2 temporary image backed by the raw image. Now run "commit ide0-hd0" and after that again "info block". You should see now that there is no more image, so any operations on it will fail form now on. This is for latest HEAD in git.
#3 lore raw
In reply to Victor Shkamerda

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 19 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/611640

Title:
  snapshot mode is broken for raw images

Status in QEMU:
  Fix Released

Bug description:
  The snapshot mode is not working if you use raw format for image
  instead of qcow2. Create a raw disk image by running "dd of=xxx.img
  bs=1 count=0 seek=8G". Then run "qemu -snapshot xxx.img". In monitor
  console run "info block". There should be qcow2 temporary image backed
  by the raw image. Now run "commit ide0-hd0" and after that again "info
  block". You should see now that there is no more image, so any
  operations on it will fail form now on. This is for latest HEAD in
  git.