summaryrefslogtreecommitdiff
path: root/c_src/tools-util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-09-01 14:53:13 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-09-01 15:11:56 -0400
commite65dd86e419d96aaa616dcb508d3564bd5721ef6 (patch)
treeb307ec60ce65af9a10c8f65b4b7e8a23b55fbffc /c_src/tools-util.h
parentda8f1d04e3b89a576cbb5fdd7cd1c1c451be11d8 (diff)
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/tools-util.h')
-rw-r--r--c_src/tools-util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/c_src/tools-util.h b/c_src/tools-util.h
index b8104002..988e2d62 100644
--- a/c_src/tools-util.h
+++ b/c_src/tools-util.h
@@ -28,8 +28,13 @@ void die(const char *, ...)
__attribute__ ((format (printf, 1, 2))) noreturn;
char *mprintf(const char *, ...)
__attribute__ ((format (printf, 1, 2)));
-void xpread(int, void *, size_t, off_t);
+
+void __xpread(int, void *, size_t, off_t, const char *, unsigned);
+#define xpread(_fd, _buf, _count, _offset) \
+ __xpread(_fd, _buf, _count, _offset, __FILE__, __LINE__)
+
void xpwrite(int, const void *, size_t, off_t, const char *);
+
struct stat xfstatat(int, const char *, int);
struct stat xfstat(int);
struct stat xstat(const char *);