• M
    qemuDomainUndefineFlags: unlink nvram file regardless of domain state · e488ebb3
    Michal Privoznik 提交于
    https://bugzilla.redhat.com/show_bug.cgi?id=1467245
    
    Currently, there's a bug when undefining a domain with NVRAM
    store. Basically, the unlink() of the NVRAM store file happens
    during the undefine procedure iff domain is inactive. So, if
    domain is running and undefine is called the file is left behind.
    It won't be removed in the domain cleanup process either
    (qemuProcessStop). One of the solutions is to remove if
    regardless of the domain state and rely on qemu having the file
    opened. This still has a downside that if the domain is defined
    back the NVRAM store file is going to be new, any changes to the
    current one are lost (just like with any other file that is
    deleted while a process has it opened). But is it really a
    downside?
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    e488ebb3
qemu_driver.c 663.8 KB