Discussion:
[libvirt-users] Snapshot overlay-file deletion
Gionatan Danti
2018-08-31 19:17:54 UTC
Permalink
Hi list,
issuing the command "virsh blockcommit --delete --pivot" (on a
previously created external snapshot/overlay) returns an error regarding
an unsupported flag warning stating "error: unsupported flags (0x2)". I
need to manually "rm" the affected file after the blockcommit.

A similar issue was reported many years ago here [1]. Am I missing
something, or is the "--delete" flag not supported?
Thanks.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1001475
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: ***@assyoma.it - ***@assyoma.it
GPG public key ID: FF5F32A8
Eric Blake
2018-08-31 20:23:19 UTC
Permalink
Post by Gionatan Danti
Hi list,
issuing the command "virsh blockcommit --delete --pivot" (on a
previously created external snapshot/overlay) returns an error regarding
an unsupported flag warning stating "error: unsupported flags (0x2)". I
need to manually "rm" the affected file after the blockcommit.
A similar issue was reported many years ago here [1]. Am I missing
something, or is the "--delete" flag not supported?
The qemu driver still does not implement the flag. Yes, it's a known
issue for many years now, but it is surprisingly complex to come up with
semantics for deletion of an external snapshot in a way that doesn't
corrupt data, so no one has tackled that code project.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
Gionatan Danti
2018-08-31 20:47:56 UTC
Permalink
Post by Eric Blake
The qemu driver still does not implement the flag. Yes, it's a known
issue for many years now, but it is surprisingly complex to come up
with semantics for deletion of an external snapshot in a way that
doesn't corrupt data, so no one has tackled that code project.
Mmm... if I am expected to manually delete the inactive overlay file
(after a successful blockcommit --pivot), why can not libvirt/qemu do
the same? I mean, a simple rm of the inactive (just commited) file...

Thanks.
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: ***@assyoma.it - ***@assyoma.it
GPG public key ID: FF5F32A8
Loading...