Tools: hv: vssdaemon: ignore the EBUSY on multiple freezing the same partition
authorDexuan Cui <decui@microsoft.com>
Fri, 26 Sep 2014 04:52:04 +0000 (21:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 18:13:29 +0000 (10:13 -0800)
commit4f689190bb55d171d2f6614f8a6cbd4b868e48bd
tree4fffdcfc577469993619857c9dee4fa753d14589
parente0f1147cc9512d3610d2f2a0f069690661444703
Tools: hv: vssdaemon: ignore the EBUSY on multiple freezing the same partition

If a partition appears mounted more than once in /proc/mounts, vss_do_freeze()
succeeds only for the first time and gets EBUSY (on freeze) or EINVAL (on
thaw) for the second time. The patch ignores these to make the backup feature
work.

Also improved the error handling in case a freeze operation fails.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_vss_daemon.c