diff options
author | Tomoki Sekiyama <tomoki.sekiyama@hds.com> | 2013-08-07 11:40:25 -0400 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-09-09 14:17:57 -0500 |
commit | 64c003174039d0c63ea2bef48d600363ce80a58b (patch) | |
tree | 4764da0dae326f30a0e337147e0aa926a916d646 /qga/vss-win32.h | |
parent | b39297aedfabe9b2c426cd540413be991500da25 (diff) |
qemu-ga: Call Windows VSS requester in fsfreeze command handler
Support guest-fsfreeze-freeze and guest-fsfreeze-thaw commands for Windows
guests. When fsfreeze command is issued, it calls the VSS requester to
freeze filesystems and applications. On thaw command, it again tells the VSS
requester to thaw them.
This also adds calling of initialize functions for the VSS requester.
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/vss-win32.h')
-rw-r--r-- | qga/vss-win32.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qga/vss-win32.h b/qga/vss-win32.h new file mode 100644 index 0000000000..eac669c168 --- /dev/null +++ b/qga/vss-win32.h @@ -0,0 +1,24 @@ +/* + * QEMU Guest Agent VSS utility declarations + * + * Copyright Hitachi Data Systems Corp. 2013 + * + * Authors: + * Tomoki Sekiyama <tomoki.sekiyama@hds.com> + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef VSS_WIN32_H +#define VSS_WIN32_H + +#include "qapi/error.h" + +bool vss_init(bool init_requester); +void vss_deinit(bool deinit_requester); +bool vss_initialized(void); + +void qga_vss_fsfreeze(int *nr_volume, Error **err, bool freeze); + +#endif |