diff --git a/man2/ioctl_ficlonerange.2 b/man2/ioctl_ficlonerange.2 index 14a7562a1..ac0738a88 100644 --- a/man2/ioctl_ficlonerange.2 +++ b/man2/ioctl_ficlonerange.2 @@ -90,13 +90,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 reflink. .TP .B EINVAL The filesystem does not support reflinking the ranges of the given files. @@ -107,14 +108,13 @@ to be aligned to the fundamental block size. XFS and Btrfs do not support overlapping reflink 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 reflink. +.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 reflinking either file +descriptor. .TP .B EPERM .IR dest_fd @@ -124,9 +124,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 reflinking either file -descriptor. +.B EXDEV +.IR dest_fd " and " src_fd +are not on the same mounted filesystem. .SH VERSIONS These ioctl operations first appeared in Linux 4.5. They were previously known as