Daan De Meyer
8b9fb1bbec
io-util: add pwritev_full() and pwrite_full()
...
loop_write() writes one buffer at the file position. To write at an
offset, callers call pwrite() or pwritev() directly and handle short
writes themselves.
Add pwritev_full(), which writes all iovecs at an offset, retries on
EINTR and short writes, splits batches larger than IOV_MAX, and reports
the number of bytes written, also on failure. Add pwrite_full(), which
does the same for one buffer.
(cherry picked from commit 4d36be491a568180dc6336b91b0c496bb8cb6601)
2026-10-16 17:24:51 +01:00
..
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 09:29:04 +02:00
2026-10-16 17:24:51 +01:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:33 +01:00
2026-10-15 17:39:05 +01:00
2026-10-16 17:24:51 +01:00
2026-10-16 17:24:51 +01:00
2026-10-16 11:36:32 +01:00
2026-08-28 09:29:04 +02:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 09:29:04 +02:00
2026-10-16 17:24:50 +01:00
2026-08-28 09:29:04 +02:00
2026-08-28 09:29:04 +02:00
2026-10-16 11:36:32 +01:00
2026-10-16 11:36:32 +01:00
2026-07-10 16:35:19 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-18 06:30:10 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 17:24:51 +01:00
2026-07-08 12:13:43 +01:00
2026-07-10 16:35:19 +09:00
2026-08-04 22:46:13 +09:00
2026-09-01 11:41:19 -04:00
2026-08-14 11:59:58 +02:00
2026-07-10 16:35:19 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 14:50:10 +02:00
2026-10-16 11:36:32 +01:00
2026-08-28 09:29:04 +02:00
2026-08-28 09:29:04 +02:00
2026-09-16 12:45:11 +02:00
2026-09-01 11:41:19 -04:00
2026-09-22 18:14:12 +09:00
2026-08-28 09:29:04 +02:00
2026-09-10 03:32:51 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:19:13 +09:00
2026-10-16 17:24:50 +01:00
2026-10-16 11:36:32 +01:00
2026-08-29 07:40:35 +09:00
2026-08-28 09:29:04 +02:00
2026-10-16 11:36:32 +01:00
2026-08-28 09:29:04 +02:00
2026-08-28 06:34:45 +09:00
2026-09-07 16:15:42 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-07-15 02:18:05 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-10-16 11:36:33 +01:00
2026-07-11 17:09:14 +01:00
2026-06-26 16:03:18 -04:00
2026-10-16 17:24:51 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-10-16 11:36:33 +01:00
2026-07-10 16:35:19 +09:00
2026-08-28 06:34:45 +09:00
2026-07-01 18:18:00 +01:00
2026-08-28 06:34:45 +09:00
2026-07-10 16:35:19 +09:00
2026-10-16 17:24:51 +01:00
2026-10-16 11:36:32 +01:00
2026-10-16 17:24:50 +01:00
2026-10-16 11:36:33 +01:00
2026-08-31 16:57:19 +01:00
2026-10-16 17:24:51 +01:00
2026-10-16 17:24:51 +01:00
2026-10-16 17:24:51 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-10-16 11:36:33 +01:00
2026-08-28 06:34:45 +09:00
2026-08-28 09:29:04 +02:00
2026-10-16 11:36:32 +01:00
2026-08-28 06:34:45 +09:00
2026-10-16 11:36:32 +01:00
2026-10-16 11:36:32 +01:00
2026-10-16 17:24:50 +01:00
2026-09-10 12:07:06 +01:00
2026-09-14 15:15:58 +02:00
2026-08-28 06:34:45 +09:00
2026-10-16 17:24:51 +01:00
2026-09-17 13:00:17 +02:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-08-28 06:34:45 +09:00
2026-10-16 17:24:51 +01:00
2026-10-16 17:24:50 +01:00
2026-08-28 06:34:45 +09:00
2026-07-29 11:41:17 +09:00
2026-07-10 16:35:19 +09:00
2026-08-28 09:29:04 +02:00
2026-08-28 06:34:45 +09:00
2026-08-28 09:29:04 +02:00
2026-08-25 06:58:06 +09:00
2026-08-28 09:29:04 +02:00
2026-10-16 11:36:32 +01:00
2026-07-10 16:35:19 +09:00
2026-08-28 06:34:45 +09:00
2026-08-18 06:30:10 +09:00