Skip to content

Commit

Permalink
Tools: hv: vss: Thaw the filesystem and continue if freeze call has t…
Browse files Browse the repository at this point in the history
…imed 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 <[email protected]>
Signed-off-by: Alex Ng <[email protected]>
Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Alex Ng authored and gregkh committed May 18, 2017
1 parent 2ea659a commit 6113e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/hv/hv_vss_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ int main(int argc, char *argv[])
if (len != sizeof(struct hv_vss_msg)) {
syslog(LOG_ERR, "write failed; error: %d %s", errno,
strerror(errno));
exit(EXIT_FAILURE);

if (op == VSS_OP_FREEZE)
vss_operate(VSS_OP_THAW);
}
}

Expand Down

0 comments on commit 6113e3d

Please sign in to comment.