From: VMware, Inc <> Date: Thu, 24 Feb 2011 21:37:17 +0000 (-0800) Subject: Internal branch sync. Included in this change: X-Git-Tag: 2011.02.23-368700~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1933c5ea7c76e2bede6486d6caca63510d58b202;p=thirdparty%2Fopen-vm-tools.git Internal branch sync. Included in this change: . make quiescing error messages more generic. . changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vm_product.h b/open-vm-tools/lib/include/vm_product.h index 7b484eb0d..b5d7ef669 100644 --- a/open-vm-tools/lib/include/vm_product.h +++ b/open-vm-tools/lib/include/vm_product.h @@ -192,7 +192,7 @@ #endif #define PRODUCT_VMRC_PLUGIN_CURRENT_MIMETYPE \ - "application/x-vmware-vmrc-2011" + "application/x-vmware-remote-console-2011" /* * legacy plugin mimetypes (currently unused but here for reference) diff --git a/open-vm-tools/services/plugins/vmbackup/scriptOps.c b/open-vm-tools/services/plugins/vmbackup/scriptOps.c index 1c483343d..185bcf5a3 100644 --- a/open-vm-tools/services/plugins/vmbackup/scriptOps.c +++ b/open-vm-tools/services/plugins/vmbackup/scriptOps.c @@ -315,7 +315,7 @@ exit: /* Report the script error to the host */ VmBackup_SendEvent(VMBACKUP_EVENT_REQUESTOR_ERROR, VMBACKUP_SCRIPT_ERROR, - "Custom script failed."); + "Custom quiesce script failed."); } return ret; } diff --git a/open-vm-tools/services/plugins/vmbackup/stateMachine.c b/open-vm-tools/services/plugins/vmbackup/stateMachine.c index 8e8410b5a..d3ab6a28e 100644 --- a/open-vm-tools/services/plugins/vmbackup/stateMachine.c +++ b/open-vm-tools/services/plugins/vmbackup/stateMachine.c @@ -261,7 +261,7 @@ VmBackupStartScripts(VmBackupScriptType type) opName)) { VmBackup_SendEvent(VMBACKUP_EVENT_REQUESTOR_ERROR, VMBACKUP_SCRIPT_ERROR, - "Error when starting backup scripts."); + "Error when starting custom quiesce scripts."); return FALSE; } @@ -335,7 +335,7 @@ VmBackupDoAbort(void) VmBackup_SendEvent(VMBACKUP_EVENT_REQUESTOR_ABORT, VMBACKUP_REMOTE_ABORT, - "Backup aborted."); + "Quiesce aborted."); /* Transition to the error state. */ if (VmBackupOnError()) { @@ -704,7 +704,8 @@ error: g_free(gBackupState->volumes); g_free(gBackupState); gBackupState = NULL; - return RPCIN_SETRETVALS(data, "Error initializing backup.", FALSE); + return RPCIN_SETRETVALS(data, "Error initializing quiesce operation.", + FALSE); } @@ -726,7 +727,8 @@ VmBackupStart(RpcInData *data) { g_debug("*** %s\n", __FUNCTION__); if (gBackupState != NULL) { - return RPCIN_SETRETVALS(data, "Backup operation already in progress.", FALSE); + return RPCIN_SETRETVALS(data, "Quiesce operation already in progress.", + FALSE); } gBackupState = g_new0(VmBackupState, 1); if (data->argsSize > 0) { @@ -794,7 +796,7 @@ VmBackupStartWithOpts(RpcInData *data) g_debug("*** %s\n", __FUNCTION__); if (gBackupState != NULL) { - return RPCIN_SETRETVALS(data, "Backup operation already in progress.", + return RPCIN_SETRETVALS(data, "Quiesce operation already in progress.", FALSE); } params = (GuestQuiesceParams *)data->args; @@ -836,7 +838,8 @@ VmBackupAbort(RpcInData *data) { g_debug("*** %s\n", __FUNCTION__); if (gBackupState == NULL) { - return RPCIN_SETRETVALS(data, "Error: no backup in progress", FALSE); + return RPCIN_SETRETVALS(data, "Error: no quiesce operation in progress", + FALSE); } VmBackupDoAbort(); @@ -858,12 +861,12 @@ VmBackupSnapshotDone(RpcInData *data) { g_debug("*** %s\n", __FUNCTION__); if (gBackupState == NULL) { - return RPCIN_SETRETVALS(data, "Error: no backup in progress", FALSE); + return RPCIN_SETRETVALS(data, "Error: no quiesce operation in progress", FALSE); } else if (gBackupState->machineState != VMBACKUP_MSTATE_SYNC_FREEZE) { g_warning("Error: unexpected state for snapshot done message: %s", VmBackupGetStateName(gBackupState->machineState)); return RPCIN_SETRETVALS(data, - "Error: unexpected state for snapshot done message.", + "Error: unexpected state for quiesce done message.", FALSE); } else { if (data->argsSize > 1) {