Make block size a compile-time tunable

This commit is contained in:
Imbus 2026-02-07 13:22:05 +01:00
parent 1a73c5a248
commit 3d61eeb1ab

View file

@ -22,6 +22,10 @@
#define CR_YEAR "2026"
#endif
#ifndef BLOCKSIZE
#define BLOCKSIZE (4 * 1024 * 1024)
#endif
// clang-format off
const char help[] =
"Usage:\n"
@ -38,8 +42,6 @@ const char help[] =
const char copyright[] = "Copyright (C) %s Imbus, BSD-2-Clause\n";
#define BLOCKSIZE (4 * 1024 * 1024)
struct write_job {
char *filename;
char *dev_name;