(dst, src string)
| 106 | } |
| 107 | |
| 108 | func cloneFileSyscall(dst, src string) *CloneFileError { |
| 109 | err := unix.Clonefileat(unix.AT_FDCWD, src, unix.AT_FDCWD, dst, unix.CLONE_NOFOLLOW) |
| 110 | if err != nil { |
| 111 | return &CloneFileError{ |
| 112 | Unsupported: err == unix.ENOTSUP, |
| 113 | errorString: tr.Tr.Get("error cloning from %v to %v: %s", src, dst, err), |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | return nil |
| 118 | } |