[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] large file support for lomount (for 32-bit dom0)



Give lomount large file support on a 32-bit dom0 so that
file images larger than 4GB can be lomount'ed.

Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>

diff -r 23b43708aad6 tools/misc/lomount/lomount.c
--- a/tools/misc/lomount/lomount.c      Wed Nov 04 22:32:01 2009 +0000
+++ b/tools/misc/lomount/lomount.c      Thu Nov 05 07:41:34 2009 -0700
@@ -34,6 +34,9 @@
  *  bit 7 clear:       lomount wrapper ok; mount's return code in low 7 bits
  *  0                  success
  */
+
+#define _LARGEFILE_SOURCE
+#define _FILE_OFFSET_BITS 64
 
 enum
 {

Attachment: lomount.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.