summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorAlex Ng <alexng@messages.microsoft.com>2016-09-02 05:58:25 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-02 17:22:51 +0200
commitdb886e4d24c2b3d334be2cc1bd1bd05d547eb4c4 (patch)
tree760c8d3cc77fdc9eb50c27e642febdd3c687a224 /tools/hv
parent497af84b81b98b27e9ba7aebb8a373412e328497 (diff)
downloadlinux-stable-db886e4d24c2b3d334be2cc1bd1bd05d547eb4c4.tar.gz
linux-stable-db886e4d24c2b3d334be2cc1bd1bd05d547eb4c4.tar.bz2
linux-stable-db886e4d24c2b3d334be2cc1bd1bd05d547eb4c4.zip
Drivers: hv: utils: Check VSS daemon is listening before a hot backup
Hyper-V host will send a VSS_OP_HOT_BACKUP request to check if guest is ready for a live backup/snapshot. The driver should respond to the check only if the daemon is running and listening to requests. This allows the host to fallback to standard snapshots in case the VSS daemon is not running. Signed-off-by: Alex Ng <alexng@messages.microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv')
-rw-r--r--tools/hv/hv_vss_daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index 5d51d6ff08e6..e0829809c897 100644
--- a/tools/hv/hv_vss_daemon.c
+++ b/tools/hv/hv_vss_daemon.c
@@ -250,6 +250,9 @@ int main(int argc, char *argv[])
syslog(LOG_ERR, "/etc/fstab and /proc/mounts");
}
break;
+ case VSS_OP_HOT_BACKUP:
+ syslog(LOG_INFO, "VSS: op=CHECK HOT BACKUP\n");
+ break;
default:
syslog(LOG_ERR, "Illegal op:%d\n", op);
}