Skip to content
  • Michael Roth's avatar
    qemu-ga: add a whitelist for fsfreeze-safe commands · f22d85e9
    Michael Roth authored
    
    
    Currently we rely on fsfreeze/thaw commands disabling/enabling logging
    then having other commands check whether logging is disabled to avoid
    executing if they aren't safe for running while a filesystem is frozen.
    
    Instead, have an explicit whitelist of fsfreeze-safe commands, and
    consolidate logging and command enablement/disablement into a pair
    of helper functions: ga_set_frozen()/ga_unset_frozen()
    
    Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
    f22d85e9