Hi, This is version 8 of the qemu-ga fsfreeze hook patchset.
*Changes from v7: ( http://patchwork.ozlabs.org/patch/204426/ ) 1/2: Not changed. 2/2: Moved .gitignore exception for fsfreeze-hook.d right below "*.d". Make fsfreeze success even if fsfreeze-hook.d doesn't exist. Use printf(1) instead of echo to output logs. Use "$MYSQL" $MYSQL_OPTS instead of $MYSQL_CMD for safety. Improve signal handling in flush-mysql.sh. Fix misspelling. This patchset depends on Luiz Capitulino's patchset to improve error handling, which is available at: https://lists.gnu.org/archive/html/qemu-devel/2012-11/msg03016.html --- Tomoki Sekiyama (2): qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw qemu-ga: sample fsfreeze hooks .gitignore | 1 Makefile | 2 - qemu-ga.c | 42 ++++++++++++ qga/commands-posix.c | 69 ++++++++++++++++++++ qga/guest-agent-core.h | 1 scripts/qemu-guest-agent/fsfreeze-hook | 33 ++++++++++ .../fsfreeze-hook.d/mysql-flush.sh.sample | 56 ++++++++++++++++ 7 files changed, 202 insertions(+), 2 deletions(-) create mode 100755 scripts/qemu-guest-agent/fsfreeze-hook create mode 100755 scripts/qemu-guest-agent/fsfreeze-hook.d/mysql-flush.sh.sample Thanks, -- Tomoki Sekiyama <tomoki.sekiyama...@hitachi.com> Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory