[PATCH 6/9] tools: hv: fcopy_daemon: support >2GB files for x86_32 guest

K. Y. Srinivasan kys at microsoft.com
Wed Mar 18 00:41:58 UTC 2015

From: Dexuan Cui <decui at microsoft.com>

Without this patch, hv_fcopy_daemon's hv_copy_data() -> pwrite()
will fail for >2GB file offset.

The current char-next branch is broken and this patch fixes
the bug.

Signed-off-by: Alex Ng <alexng at microsoft.com>
Signed-off-by: Dexuan Cui <decui at microsoft.com>
Cc: K. Y. Srinivasan <kys at microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
 tools/hv/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/hv/Makefile b/tools/hv/Makefile
index 99ffe61..a8ab795 100644
--- a/tools/hv/Makefile
+++ b/tools/hv/Makefile
@@ -3,7 +3,7 @@
 PTHREAD_LIBS = -lpthread
 WARNINGS = -Wall -Wextra
+CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) $(shell getconf LFS_CFLAGS)
 all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
 %: %.c

More information about the devel mailing list