Skip to content

Commit 6113e3d

Browse files
Alex Nggregkh
authored andcommitted
Tools: hv: vss: Thaw the filesystem and continue if freeze call has timed out
If a FREEZE operation takes too long, the driver may time out and move on to another operation. The daemon is unaware of this and attempts to notify the driver that the FREEZE succeeded. This results in an error from the driver and the daemon leaves the filesystem in frozen state. Fix this by thawing the filesystem and continuing. Signed-off-by: Michael Gissing <mg@faulpeltz.net> 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>
1 parent 2ea659a commit 6113e3d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tools/hv/hv_vss_daemon.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ int main(int argc, char *argv[])
261261
if (len != sizeof(struct hv_vss_msg)) {
262262
syslog(LOG_ERR, "write failed; error: %d %s", errno,
263263
strerror(errno));
264-
exit(EXIT_FAILURE);
264+
265+
if (op == VSS_OP_FREEZE)
266+
vss_operate(VSS_OP_THAW);
265267
}
266268
}
267269

0 commit comments

Comments
 (0)