• M
    qemu-ga: improve recovery options for fsfreeze · 9e8aded4
    Michael Roth 提交于
    guest-fsfreeze-thaw relies on state information obtained from
    guest-fsfreeze-freeze to determine what filesystems to unfreeze.
    This is unreliable due to the fact that that state does not account
    for FIFREEZE being issued by other processes, or previous instances
    of qemu-ga. This means in certain situations we cannot thaw
    filesystems even with a responsive qemu-ga instance at our disposal.
    
    This patch allows guest-fsfreeze-thaw to be issued unconditionally.
    It also adds some additional logic to allow us to thaw filesystems
    regardless of how many times the filesystem's "frozen" refcount has
    been incremented by any guest processes.
    
    Also, guest-fsfreeze-freeze now operates atomically: on success all
    freezable filesystems are frozen, and on error all filesystems are
    thawed. The ambiguous "GUEST_FSFREEZE_STATUS_ERROR" state is no
    longer entered.
    Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
    9e8aded4
commands-posix.c 25.3 KB