qemu-ga: add a whitelist for fsfreeze-safe commands
commitf22d85e9e67262db34504f4079745f9843da6a92
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 18 Apr 2012 00:01:45 +0000 (17 19:01 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 30 Apr 2012 13:42:10 +0000 (30 08:42 -0500)
tree4eb65b26bec47ed0b9b9f6014ad5278b1e89f048
parent9e8aded432884477bcd4fa1c7e849a196412bcc4
qemu-ga: add a whitelist for fsfreeze-safe commands

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: Michael Roth <mdroth@linux.vnet.ibm.com>
qapi/qmp-core.h
qapi/qmp-registry.c
qemu-ga.c
qga/commands-posix.c
qga/guest-agent-core.h