[PATCH] lhype: Add LFS support to lhype_add for disk images

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

 



This patch allows lhype_add to open disk image files larger than 2GB.

Please apply.

Signed-off-by: James Morris <jmorris at redhat.com>

---

diff -r 82d084b15417 drivers/lhype/lhype_add.c
--- a/drivers/lhype/lhype_add.c	Wed Nov 15 00:58:18 2006 -0500
+++ b/drivers/lhype/lhype_add.c	Wed Nov 15 01:01:35 2006 -0500
@@ -329,7 +329,7 @@ static int set_up_block_device(const cha
 	struct stat st;
 	int fd;
 
-	fd = open(name, O_RDWR, 0);
+	fd = open(name, O_RDWR|O_LARGEFILE, 0);
 	if (fd < 0)
 		err(1, "Opening %s", name);
 



[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux