Make block size a compile-time tunable
This commit is contained in:
parent
1a73c5a248
commit
3d61eeb1ab
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue