| ... | ... | @@ -6251,7 +6251,7 @@ pub const CopyFileRangeError = error{ |
| 6251 | 6251 | NoSpaceLeft, |
| 6252 | 6252 | Unseekable, |
| 6253 | 6253 | PermissionDenied, |
| 6254 | | FileBusy, |
| 6254 | SwapFile, |
| 6255 | 6255 | } || PReadError || PWriteError || UnexpectedError; |
| 6256 | 6256 | |
| 6257 | 6257 | var has_copy_file_range_syscall = std.atomic.Atomic(bool).init(true); |
| ... | ... | @@ -6305,7 +6305,7 @@ pub fn copy_file_range(fd_in: fd_t, off_in: u64, fd_out: fd_t, off_out: u64, len |
| 6305 | 6305 | .NOSPC => return error.NoSpaceLeft, |
| 6306 | 6306 | .OVERFLOW => return error.Unseekable, |
| 6307 | 6307 | .PERM => return error.PermissionDenied, |
| 6308 | | .TXTBSY => return error.FileBusy, |
| 6308 | .TXTBSY => return error.SwapFile, |
| 6309 | 6309 | // these may not be regular files, try fallback |
| 6310 | 6310 | .INVAL => {}, |
| 6311 | 6311 | // support for cross-filesystem copy added in Linux 5.3, use fallback |