do_iterative_fd_io(): Don't fail when the getVecs callback returns

B_BUFFER_OVERFLOW. It will have returned valid vectors in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37572 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-07-19 01:14:02 +00:00
parent 45849022ce
commit 08e2a0556c

View File

@ -307,7 +307,7 @@ do_iterative_fd_io(int fd, io_request *_request, iterative_io_get_vecs getVecs,
uint32 fileVecCount = DoIterativeFDIORequest::MAX_VECS;
status_t error = getVecs(_cookie, _request, request->offset,
request->length, fileVecs, &fileVecCount);
if (error != B_OK)
if (error != B_OK && error != B_BUFFER_OVERFLOW)
return error;
// create a cookie