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

Please apply.

Signed-off-by: James Morris <[EMAIL PROTECTED]>

---

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);
 

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/virtualization

Reply via email to