mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix bug, where copy_file_range was still calling legacy copy
There was a small issue here, where it copied the data using traditional mechanisms, even when copy_file_range was successful. Signed-off-by: Sargun Dhillon <sargun@sargun.me>
This commit is contained in:
parent
d2b71b2660
commit
0eac562281
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func copyRegular(srcPath, dstPath string, fileinfo os.FileInfo, copyWithFileRang
|
|||
// as the ioctl may not have been available (therefore EINVAL)
|
||||
if err == unix.EXDEV || err == unix.ENOSYS {
|
||||
*copyWithFileRange = false
|
||||
} else if err != nil {
|
||||
} else {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue