tag 405724 fixed-upstream
thanks

Hello Andre,

> open(2) (/usr/share/man/man2/open.2.gz) does not document the
> error EFBIG for open(). I get this error when trying to run lde on
> a 250-GB regular file :
> 
>   # dd bs=1 seek=250G count=1 if=/dev/zero of=bigfile
>   # strace -o lde.strace lde bigfile
>   # grep -w open lde.strace
>   open("bigfile", O_RDWR)                 = -1 EFBIG (File too large)
>   open("bigfile", O_RDONLY)               = -1 EFBIG (File too large)
> 
> Filesystem is XFS. Kernel is Linux 2.6.18.2 (ignore the sys info
> below, it relates to another machine).

Yes, I agree.

Currently, the relevant text is under EOVERFLOW, which is the POSIX.1
standard error for this case.  But as you note, Linux actually delivers
EFBIG in this case.

See http://bugzilla.kernel.org/show_bug.cgi?id=7253
(I should have fixed the manual page at the same time as I made this report.)

I have rewritten the EOVERFLOW error text on this page:

       EFBIG  pathname  refers  to  a regular file, too large to be
              opened; see O_LARGEFILE above.  (POSIX.1-2001  speci-
              fies the error EOVERFLOW for this case.)

The change will appear in upstream 2.44.

Thanks for your report.

Cheers,

Michael
-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7

Want to help with man page maintenance?  Grab the latest tarball at
http://www.kernel.org/pub/linux/docs/manpages/
read the HOWTOHELP file and grep the source files for 'FIXME'.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to