WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] large file support for lomount (for 32-bit dom0)
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Fri, 6 Nov 2009 08:56:41 -0800 (PST)
Delivery-date: Fri, 06 Nov 2009 08:57:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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