Changeset 29833 in vbox for trunk/src/VBox
- Timestamp:
- May 26, 2010 9:40:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp
r29237 r29833 407 407 if (RT_UNLIKELY(rcBSD < 0)) 408 408 { 409 if ( rcBSD== EAGAIN)409 if (errno == EAGAIN) 410 410 rc = VERR_FILE_AIO_INSUFFICIENT_RESSOURCES; 411 411 else … … 417 417 pReqInt = pahReqs[i]; 418 418 rcBSD = aio_error(&pReqInt->AioCB); 419 if (rcBSD == EINVAL )419 if (rcBSD == EINVAL || rcBSD == EAGAIN) 420 420 { 421 421 /* Was not submitted. */ … … 441 441 442 442 /* Check if we have a flush request now. */ 443 if (cReqs )443 if (cReqs && RT_SUCCESS_NP(rc)) 444 444 { 445 445 pReqInt = pahReqs[0]; … … 455 455 if (RT_UNLIKELY(rcBSD < 0)) 456 456 { 457 RTFILEAIOREQ_SET_STATE(pReqInt, COMPLETED); 458 pReqInt->Rc = RTErrConvertFromErrno(errno); 459 pReqInt->cbTransfered = 0; 460 return pReqInt->Rc; 457 if (rcBSD == EAGAIN) 458 { 459 /* Was not submitted. */ 460 RTFILEAIOREQ_SET_STATE(pReqInt, PREPARED); 461 pReqInt->pCtxInt = NULL; 462 return VERR_FILE_AIO_INSUFFICIENT_RESSOURCES; 463 } 464 else 465 { 466 RTFILEAIOREQ_SET_STATE(pReqInt, COMPLETED); 467 pReqInt->Rc = RTErrConvertFromErrno(errno); 468 pReqInt->cbTransfered = 0; 469 return pReqInt->Rc; 470 } 461 471 } 462 472
Note:
See TracChangeset
for help on using the changeset viewer.