Re: [libvirt PATCH 03/20] snapshot_conf: use alternate domain definition in virDomainSnapshotDefAssignExternalNames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 13, 2023 at 16:42:04 +0100, Pavel Hrdina wrote:
> Commit <ef3f3884a2432958bdd4ea0ce45509d47a91a453> introduced new
> argument for virDomainSnapshotAlignDisks() that allows passing alternate
> domain definition in case the snapshot parent.dom is NULL.
> 
> In case of redefining snapshot it will not hit the part of code that
> unconditionally uses parent.dom as there will not be need to generate
> default external file names.
> 
> It should be still fixed to make it safe. Future external snapshot
> revert code will use this to generate default file names and in this
> case it would crash.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  src/conf/snapshot_conf.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux