We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32eec8 commit 0e3aebbCopy full SHA for 0e3aebb
1 file changed
scripts/storage/qcow2/managesnapshot.sh
@@ -152,7 +152,8 @@ destroy_snapshot() {
152
fi
153
lvm lvremove -f "${vg}/${snapshotname}-cow"
154
elif [ -f $disk ]; then
155
- $qemu_img snapshot -d "$snapshotname" $disk
+ #delete all the existing snapshots
156
+ $qemu_img snapshot -l $disk |tail -n +3|awk '{print $1}'|xargs -I {} $qemu_img snapshot -d {} $disk >&2
157
if [ $? -gt 0 ]
158
then
159
failed=2
0 commit comments