Bug 680214

Summary: manpage for fallocate(2) is wrong
Product: [Fedora] Fedora Reporter: John Sullivan <jsrhbz>
Component: man-pagesAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13CC: varekova
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-22 13:38:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.