Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80098 - app-emulation/mol-0.9.70.ebuild (Update) LARGE_FILES and FILE_OFFSET_BITS 64 support
Summary: app-emulation/mol-0.9.70.ebuild (Update) LARGE_FILES and FILE_OFFSET_BITS 64 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on: 80093 80095
Blocks:
  Show dependency tree
 
Reported: 2005-01-30 09:36 UTC by Florian Steinel
Modified: 2005-03-07 16:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
largerthan2gb.diff (largerthan2gb.diff,7.96 KB, patch)
2005-02-23 11:11 UTC, Florian Steinel
Details | Diff
Possibly fixed patch? (mol-0.9.71_pre1-big-filesystem.patch,3.35 KB, patch)
2005-03-07 06:25 UTC, Joe Jezak (RETIRED)
Details | Diff
Using a bit more of F. Steinel's patch, try again! (mol-0.9.71_pre1-big-filesystem.patch,6.40 KB, patch)
2005-03-07 06:51 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2005-01-30 09:36:21 UTC
this ebuild enables access to diskimages (aka. files) greater then 2GB
Comment 1 Florian Steinel 2005-01-30 09:42:56 UTC
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 Florian Steinel 2005-01-30 09:47:40 UTC
- 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 Joe Jezak (RETIRED) gentoo-dev 2005-02-19 20:58:54 UTC
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 Florian Steinel 2005-02-23 11:04:07 UTC
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 Florian Steinel 2005-02-23 11:11:49 UTC
Created attachment 51976 [details, diff]
largerthan2gb.diff
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2005-02-23 12:38:26 UTC
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 Joe Jezak (RETIRED) gentoo-dev 2005-03-07 06:25:08 UTC
Created attachment 52846 [details, diff]
Possibly fixed patch?
Comment 8 Joe Jezak (RETIRED) gentoo-dev 2005-03-07 06:51:53 UTC
Created attachment 52847 [details, diff]
Using a bit more of F. Steinel's patch, try again!
Comment 9 Joe Jezak (RETIRED) gentoo-dev 2005-03-07 16:01:41 UTC
Seems to work correctly now, thanks to scoobydu for testing.