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"
|
#define CR_YEAR "2026"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BLOCKSIZE
|
||||||
|
#define BLOCKSIZE (4 * 1024 * 1024)
|
||||||
|
#endif
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const char help[] =
|
const char help[] =
|
||||||
"Usage:\n"
|
"Usage:\n"
|
||||||
|
|
@ -38,8 +42,6 @@ const char help[] =
|
||||||
|
|
||||||
const char copyright[] = "Copyright (C) %s Imbus, BSD-2-Clause\n";
|
const char copyright[] = "Copyright (C) %s Imbus, BSD-2-Clause\n";
|
||||||
|
|
||||||
#define BLOCKSIZE (4 * 1024 * 1024)
|
|
||||||
|
|
||||||
struct write_job {
|
struct write_job {
|
||||||
char *filename;
|
char *filename;
|
||||||
char *dev_name;
|
char *dev_name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue