2009/08/13

Ubuntu and "large files" (files greater than 2 G)

Recently, for whatever reason, I decided that I should have Linux on a few machines. It might have been to be sure that my tools run on Linux.

It happened that Linux ended up on one of the key machines.
That was pure over-confidence and trust.

If FreeBSD hasn't any problem with "big files", that is, files greater that 2 gigabytes, something one could expect in 2009, one could expect the same from Linux.

Well, not quite so. The spider got stuck around 2 G of data.

The two magics options to add at compile time before banging your heads on the walls (it does hurt, trust my experience):

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

Why does one need to add these defines ? (which trigger an ugly cascade of other defines, it seems a lot of people decided this needs to be frightening)
I have no idea why.

Anyway, that's two flags one needs to add.

4 comments:

Anonymous said...

Marvelous, what a weblog it is! This weblog gives useful information to us, keep it up.


Also visit my web page - get gems in clash of clans free

Anonymous said...

Amazing! This blog looks just like my old one!

It's on a completely different topic but it has pretty much the same page
layout and design. Superb choice of colors!


my web page :: vitre cassée iphone 3gs vitre cassée iphone 4 paris recyclage ecran iphone samsung comparison |rachat écrans cassés samsung note 3}

Anonymous said...

Simply desire tߋ sаy yοur article is as amazing.

TҺе clarity іn үouг post is jսst spectacular ɑnd і ϲould assume ʏoս
are an expert οn this subject. Well with yօur permission lеt me
to grab youhr feed tо keep uupdated with forthcoming post.
Thɑnks a millіon and ρlease continue tɦe gratifying ԝork.


my homepage; BerkowitzAdvertising

Anonymous said...

I've been following thе opinions in relatiоn to your blog and will I say a number of the еntгies are
prіceless. I can't wait to ѕee our follow up
to the responsеs you've received so much.

Feel free to visit mmy page - e liquid menthol