[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-blockdev vs -snapshot bug
From: |
Michael Tokarev |
Subject: |
-blockdev vs -snapshot bug |
Date: |
Fri, 13 May 2022 21:54:36 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
Hi!
Now here's something.. interesting.
I tested -blockdev here with a real image. This way:
qemu-system-x86_64 ... -snapshot \
-blockdev qcow2,node-name=q,file.driver=file,file.filename=w.qcow2 \
-device ide-hd,drive=q
I always use -snapshot when testing something, not to damage the image.
And to my great surprise, the above command *did* damage my image.
It looks like -snapshot is entirely ignored by -blockdev.
This is quite a serious issue, to me anyway, - it is seriously
unexpected.
If it is intentional, I think an error should be thrown back
because the expectation is definitely different.
Or am I doing it wrong?
Thanks,
/mjt
- -blockdev vs -snapshot bug,
Michael Tokarev <=