diff --git a/man2/ioctl_fideduperange.2 b/man2/ioctl_fideduperange.2 index 5dd398269..c52fa2a36 100644 --- a/man2/ioctl_fideduperange.2 +++ b/man2/ioctl_fideduperange.2 @@ -126,13 +126,14 @@ is set to indicate the error. .SH ERRORS Error codes can be one of, but are not limited to, the following: .TP -.B EXDEV -.IR dest_fd " and " src_fd -are not on the same mounted filesystem. -.TP -.B EISDIR -One of the files is a directory and the filesystem does not support shared -regions in directories. +.B EBADF +.IR src_fd +is not open for reading; +.IR dest_fd +is not open for writing or is open for append-only writes; or the filesystem +which +.IR src_fd +resides on does not support deduplication. .TP .B EINVAL The filesystem does not support deduplicating the ranges of the given files. @@ -143,14 +144,13 @@ to be aligned to the fundamental block size. Neither Btrfs nor XFS support overlapping deduplication ranges in the same file. .TP -.B EBADF -.IR src_fd -is not open for reading; -.IR dest_fd -is not open for writing or is open for append-only writes; or the filesystem -which -.IR src_fd -resides on does not support deduplication. +.B EISDIR +One of the files is a directory and the filesystem does not support shared +regions in directories. +.TP +.B EOPNOTSUPP +This can appear if the filesystem does not support deduplicating either file +descriptor. .TP .B EPERM .IR dest_fd @@ -160,9 +160,9 @@ is immutable. One of the files is a swap file. Swap files cannot share storage. .TP -.B EOPNOTSUPP -This can appear if the filesystem does not support deduplicating either file -descriptor. +.B EXDEV +.IR dest_fd " and " src_fd +are not on the same mounted filesystem. .SH VERSIONS This ioctl operation first appeared in Linux 4.5. It was previously known as