tools: hv: report ENOSPC errors in hv_fcopy_daemon
authorOlaf Hering <olaf@aepfle.de>
Tue, 15 Dec 2015 00:01:34 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 03:12:21 +0000 (19:12 -0800)
commitb4ed5d1682c6613988c2eb1de55df5ac9988afcc
treebca8e7647dbaf5c0e9f272b4cfeb3dcd0baa3fb3
parent3cace4a616108539e2730f8dc21a636474395e0f
tools: hv: report ENOSPC errors in hv_fcopy_daemon

Currently some "Unspecified error 0x80004005" is reported on the Windows
side if something fails. Handle the ENOSPC case and return
ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning
full error.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/hyperv.h
tools/hv/hv_fcopy_daemon.c