Bug 80098 - app-emulation/mol-0.9.70.ebuild (Update) LARGE_FILES and FILE_OFFSET_BITS 64 support
Bug#: 80098 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: ppc@gentoo.org Reported By: Florian.Steinel@googlemail.com
Component: Ebuilds
URL: 
Summary: app-emulation/mol-0.9.70.ebuild (Update) LARGE_FILES and FILE_OFFSET_BITS 64 support
Keywords:  
Status Whiteboard: 
Opened: 2005-01-30 09:36 0000
Description:   Opened: 2005-01-30 09:36 0000
this ebuild enables access to diskimages (aka. files) greater then 2GB

------- Comment #1 From Florian Steinel 2005-01-30 09:42:56 0000 -------
I created this updated ebuild while reading
http://lists.terrasoftsolutions.com/pipermail/mol-general/2004-November/003542.html
.
- The new use flag qemu is doesn't work right now.
- >2GB diskimage support is working.
(source is http://lists.maconlinux.org/pipermail/mol-devel/2003-November.txt )
--- src/lib/llseek.c~bigfile    Wed Nov  5 15:57:46 2003
+++ src/lib/llseek.c    Wed Nov  5 15:58:47 2003
@@ -21,6 +21,8 @@

 #ifdef __linux__
 #define BLKGETSIZE _IO(0x12,96)                /* from <linux/fs.h> */
+#define _FILE_OFFSET_BITS 64
+#define _LARGE_FILES
 #endif
---------------

Other usefull links:
http://soulinfo.com/wiki/index.php/Mol .

------- Comment #2 From Florian Steinel 2005-01-30 09:47:40 0000 -------
- for qemu style diskimage patch see
http://soulinfo.com/~hugang/mol/qemu_block/patch-14/tgz/mol--mainline--0.9.70--patch-14.tgz

------- Comment #3 From Joe Jezak 2005-02-19 20:58:54 0000 -------
I've added the 2G+ big filesystem image patch to mol-0.9.71_pre1, but I'm not
too sure about the qemu patch.  I think I'll leave that one out for now and if
anyone asks for it we'll direct them to the site.  Thanks for the patches!

------- Comment #4 From Florian Steinel 2005-02-23 11:04:07 0000 -------
i'm sorry, but your patch doesn't work. I get an "fstat: file to large" error,
while starting mol. I'll attach my patch (for mol-0.9.70.ebuild), these
"LARGE_FILES and FILE_OFFSET_BITS 64" maybe in some files overkill but it
doesn't do any harm.

------- Comment #5 From Florian Steinel 2005-02-23 11:11:49 0000 -------
Created an attachment (id=51976) [details]
largerthan2gb.diff

------- Comment #6 From Joe Jezak 2005-02-23 12:38:26 0000 -------
I can't test this patch personally, I don't have the disk space.  Did the first
patch work before?  Does your new patch work now?  From the thread on the MOL
ml, it looks like the first patch should be sufficient.  It's only applied to
the unstable version of MOL.  Are you sure you used that?

------- Comment #7 From Joe Jezak 2005-03-07 06:25:08 0000 -------
Created an attachment (id=52846) [details]
Possibly fixed patch?

------- Comment #8 From Joe Jezak 2005-03-07 06:51:53 0000 -------
Created an attachment (id=52847) [details]
Using a bit more of F. Steinel's patch, try again!

------- Comment #9 From Joe Jezak 2005-03-07 16:01:41 0000 -------
Seems to work correctly now, thanks to scoobydu for testing.