Skip to content

test: test and document incremental buffer short reads with IOU_PBUF_RING_INC - #1655

Open
jdymitarai wants to merge 1 commit into
axboe:masterfrom
jdymitarai:test-short-read-inc-1555
Open

jdymitarai wants to merge 1 commit into
axboe:masterfrom
jdymitarai:test-short-read-inc-1555

Conversation

@jdymitarai

Copy link
Copy Markdown

When an incremental buffer ring (IOU_PBUF_RING_INC) is consumed by operations that commit upfront during buffer selection, such as reads on non-pollable regular files, short reads leave unwritten gaps in the buffer because the reservation is based on the requested length rather than actual transferred bytes.

This adds test/short_read_inc.c to verify both contiguous pipe reads and regular file behaviors, wires it into test/Makefile, and clarifies the upfront commitment boundary in the buffer ring man pages.

Fixes #1555

…RING_INC

When an incremental buffer ring (IOU_PBUF_RING_INC) is consumed by
operations that commit upfront during buffer selection (such as reads
on non-pollable regular files), short reads leave unwritten gaps in
the buffer because reservation is based on requested length rather
than actual transferred bytes.

Add test/short_read_inc.c to verify both contiguous pipe reads and
regular file behaviors, and document the upfront commitment boundary
in the buffer ring man pages.

Fixes: axboe#1555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong offset for incremental buffers after non-pollable files

1 participant