file too large

Ketil Z. Malde
09 May 2003 15:26:25 +0200

William Lee Irwin III <> writes:

> if (!(filp->f_flags & O_LARGEFILE) && inode->i_size > MAX_NON_LFS)
>         return -EFBIG;

> What does strace(1) say it's doing?

It says

open("big_file", O_RDONLY|O_NONBLOCK|O_NOCTTY) = -1 EFBIG (File too large)

So it sounds like this is right on the money. (Even if the comment you
included is wrong, this applies with O_RDONLY, too)

If I haven't seen further, it is by standing in the footprints of giants