From 2af4d967af6666843be19f136a9dbdbadfb787e4 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 19 Apr 2014 08:13:29 +0200 Subject: [PATCH] fallocate.2: Document EINVAL for FALLOC_FL_COLLAPSE_RANGE on non-regular file Signed-off-by: Michael Kerrisk --- man2/fallocate.2 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index b2a6d7ffb..b14bb28f5 100644 --- a/man2/fallocate.2 +++ b/man2/fallocate.2 @@ -238,9 +238,20 @@ mode contains both and other flags; no other flags are permitted with .BR FALLOC_FL_COLLAPSE_RANGE . -.\" FIXME Document error when FALLOC_FL_COLLAPSE_RANGE -.\" is given a nonregular file. As at 3.15-rc1, XFS gives -.\" EINVAL, but ext4 gives EOPNOTSUPP. +.TP EINVAL +.I mode +is +.BR FALLOC_FL_COLLAPSE_RANGE , +but the file referred to by +.I fd +is not a regular file. +.\" There was a inconsistency in 3.15-rc1, that should be resolved so that all +.\" filesystems use this error for this case. (Tytso says ex4 will change.) +.\" http://thread.gmane.org/gmane.comp.file-systems.xfs.general/60485/focus=5521 +.\" From: Michael Kerrisk (man-pages +.\" Subject: Re: [PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate +.\" Newsgroups: gmane.linux.man, gmane.linux.file-systems +.\" Date: 2014-04-17 13:40:05 GMT .TP .B EIO An I/O error occurred while reading from or writing to a filesystem.