Bug 680214 - manpage for fallocate(2) is wrong
Summary: manpage for fallocate(2) is wrong
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: man-pages
Version: 13
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 17:21 UTC by John Sullivan
Modified: 2011-04-22 13:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-04-22 13:38:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Sullivan 2011-02-24 17:21:26 UTC
fallocate(2) says:

      ENOSYS  The  file  system containing the file referred to by fd does not
              support this operation.

      EOPNOTSUPP
              The mode is not supported by the file system containing the file
              referred to by fd.

This is not true. ENOSYS means the kernel does not support the syscall at all. Both lack of fs fallocate support, and lack of kernel or fs support for the particular mode requested are reported as EOPNOTSUPP. (linux/fs/open.c, linux/fs/ext4/extents.c)

(glibc for the posix_fallocate implementation looks like it will *never* use fallocate(2) again even on completely different paths, if it sees an ENOSYS return.)

Comment 1 Ivana Varekova 2011-04-22 13:38:03 UTC
Thanks for the bug report, the bug is fixed in man-pages-3.32-12.fc16.


Note You need to log in before you can comment on or make changes to this bug.