From e65dd86e419d96aaa616dcb508d3564bd5721ef6 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 1 Sep 2025 14:53:13 -0400 Subject: bcachefs undump Add our own version of 'qemu-img convert', which doesn't have the l1 table size limit or require fixing our missing reflink table. Signed-off-by: Kent Overstreet --- c_src/tools-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c_src/tools-util.c') diff --git a/c_src/tools-util.c b/c_src/tools-util.c index f48d3f21..7733b9e9 100644 --- a/c_src/tools-util.c +++ b/c_src/tools-util.c @@ -52,15 +52,15 @@ char *mprintf(const char *fmt, ...) return str; } -void xpread(int fd, void *buf, size_t count, off_t offset) +void __xpread(int fd, void *buf, size_t count, off_t offset, const char *file, unsigned line) { while (count) { ssize_t r = pread(fd, buf, count, offset); if (r < 0) - die("read error: %m"); + die("read error: %m at %s:%u", file, line); if (!r) - die("pread error: unexpected eof"); + die("pread error: unexpected eof at %s:%u", file, line); count -= r; offset += r; } -- cgit v1.2.3