Re: olarge -- force O_LARGEFILE on app binaries.

Andreas Dilger (adilger@clusterfs.com)
Mon, 14 Apr 2003 10:19:59 -0600


On Apr 14, 2003 16:03 +0100, Tigran Aivazian wrote:
> Some time ago I was annoyed to see that ghostscript didn't support large
> files (>2G) and, although the fix to gs(1) was trivial it was very
> undesirable to have to recompile it (for lots of reasons like mismatch
> between the source set and fonts, libraries etc). So the only (efficient)
> solution in my case would have been to "modify" the behaviour of the gs
> binary without rebuilding it. One way is to use LD_PRELOAD feature but I
> found it easier to just knock up a simple kernel module olarge.o to do the
> job.

I don't see how this helps you very much. So now, instead of the kernel
complaining with EFBIG and/or SIGXFSZ, your 32-bit size offset wraps in
the application.

Cheers, Andreas

--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/