Changeset 85491 in vbox for trunk/src/VBox/Runtime/r3/linux
- Timestamp:
- Jul 28, 2020 4:31:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
r82968 r85491 124 124 AssertReturn(pBufState->uMagic == RTFILECOPYPARTBUFSTATE_MAGIC, VERR_INVALID_FLAGS); 125 125 if (pBufState->iAllocType == -42) 126 { /* more and more lik ley as time goes */ }126 { /* more and more likely as time goes */ } 127 127 else 128 128 return rtFileCopyPartExFallback(hFileSrc, offSrc, hFileDst, offDst, cbToCopy, fFlags, pBufState, pcbCopied); … … 155 155 Assert(rc != 0); 156 156 rc = rc != 0 ? RTErrConvertFromErrno(rc) : VERR_READ_ERROR; 157 break; 157 if (rc != VERR_NOT_SAME_DEVICE || cbCopied != 0) 158 break; 159 160 /* Fall back to generic implementation if the syscall refuses to handle the case. */ 161 rc = rtFileCopyPartPrepFallback(pBufState, cbToCopy); 162 if (RT_SUCCESS(rc)) 163 return rtFileCopyPartExFallback(hFileSrc, offSrc, hFileDst, offDst, cbToCopy, fFlags, pBufState, pcbCopied); 164 return rc; 158 165 } 159 166 Assert(offThisSrc == offSrc + (int64_t)cbCopied + cbActual);
Note:
See TracChangeset
for help on using the changeset viewer.