Thanks Paul thats has gotten it.
I now just have to track down all the places that it is need in the
proper app.
I owe you at least one drink for this.
MArk
On Thu, 2002-02-07 at 14:10, Paul Jakma wrote:
> for C, add
>> #define _LARGEFILE_SOURCE
> #define _LARGEFILE64_SOURCE
> #define _FILE_OFFSET_BITS 64
>> to the top of your source. (before any #includes).
>> works with C.. hopefully it'd work with C++.
>> On 7 Feb 2002, Mark Kilmartin wrote:
>> > Can anybody help with the above error.
> >
> > I have narrowed the problem down to the following.
> > Please read the full message before jumping to the obvious conclusion!
> >
> >
> > I have a small and very simple c++ (About as basic as it can get)
> > that will write an amount of data to a file the size is supplied as
> > command line arguments.
> >
> > If I specify a file size of under 2G everything is fine.
> > However If I specify a size over 2G I get the error File size limit
> > exceeded.
> >
> > I have tried this on two different systems.
> >
> > A RH7.2 box with the 2.4.7 enterprise kernel as supplied by RH
> >
> > And on a Debian Woody box with a custom 2.4.13 kernel.
> >
> > If I recompile the C++ program to write to stdout instead of a file and
> > then pipe the output into a file everything is fine.
> > I have a file above 2G.
> >
> > Anybody have any ideas.
> >
> > Oh it is a ReiserFS on top of LVM if that makes a difference.
> > And it is a 3.6.x version of reiserFS so it doesn't have the @G limit
> > that the 3.5.x versions had.
> >
> > MArk
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!