4 Feb
2025
4 Feb
'25
1:42 a.m.
On Mon, 3 Feb 2025 20:26:14 +1100
David Gibson
read_remainder() takes a struct iovec * to describe where it will read its data, unlike write_remainder() which takes a const struct iovec *. At first this seems like it makes sense, since read_remainder() will alter data within the iovec.
However, what it actually alters is data within the buffers described by the iovec, not the iovec entries itself. So, like write it should take a const struct iovec *.
[This is a candidate for folding into the earlier patch]
Folded into existing patch and applied. -- Stefano