If the goal of this code was to copy the iovec and skip the first offset
bytes then it was not correct. This commit was SVN r10388.
Этот коммит содержится в:
родитель
93afe59226
Коммит
3f96f39e46
@ -279,8 +279,9 @@ do {
|
||||
if(offset >= segment->seg_len) { \
|
||||
offset -= segment->seg_len; \
|
||||
} else { \
|
||||
iov[iov_count].iov_len = segment->seg_len - seg_offset; \
|
||||
iov[iov_count].iov_base = (void*)((unsigned char*)segment->seg_addr.pval + seg_offset); \
|
||||
iov[iov_count].iov_len = segment->seg_len - offset; \
|
||||
iov[iov_count].iov_base = (void*)((unsigned char*)segment->seg_addr.pval + offset); \
|
||||
offset = 0; \
|
||||
iov_count++; \
|
||||
} \
|
||||
} \
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user