Skip to contentSkip to conversation

Add QMP fsfreeze support

PATCH New [email protected] 1 participant 1 message Apr 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add QMP fsfreeze support

From: Jes Sorensen <[email protected]>

This patch adds the following QMP commands:
qga-guest-fsfreeze:
- Freezes all local file systems in the guest. Command will return the number of file systems that were frozen.
qga-guest-fsthaw:
- Thaws all local file systems in the guest. Command will return the number of file systems that were thawed.

---
 qapi-schema.json           |   24 ++++++
 qga/guest-agent-commands.c |  177 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 201 insertions(+), 0 deletions(-)
qapi-schema.json +24 -0
index e2f209d..2c86cec 100644
@@ -1562,6 +1562,30 @@
 { 'option': 'blockdev', 'data': 'BlockdevConfig', 'implicit': 'id' }
 
 ##
+# @guest-fsfreeze:
+#
+# json gibberish for guest-fsfreeze command
+#
+# Returns: Number of file systems frozen
+#
+# Since: 0.15.0
+##
+{ 'command': 'guest-fsfreeze',
+  'returns': 'int' }
+
+##
+# @guest-fsthaw:
+#
+# json gibberish for guest-fsthaw command
+#
+# Returns: Number of file systems thawed
+#
+# Since: 0.15.0
+##
+{ 'command': 'guest-fsthaw',
+  'returns': 'int' }
+
+##
 # @VncConfig:
 #
 # Configuration options for the built-in VNC server.
qga/guest-agent-commands.c +177 -0

189 lines not on this page · raw message

Signature · 1 line
1.7.4.4