Skip to content

Commit

Permalink
add define for 1xKB
Browse files Browse the repository at this point in the history
  • Loading branch information
embetrix committed Dec 26, 2024
1 parent 32e8cce commit 41ab597
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bmap-writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <openssl/sha.h>
#include <archive.h>

#define KB 1024

struct range_t {
std::string checksum;
std::string range;
Expand Down Expand Up @@ -111,7 +113,7 @@ bool isDeviceMounted(const std::string &device) {
}

int BmapWriteImage(const std::string &imageFile, const bmap_t &bmap, const std::string &device) {
static const size_t read_block_size = 16384;
static const size_t read_block_size = 16*KB;
struct archive *a = nullptr;
int dev_fd = -1;
int ret = 0;
Expand Down

0 comments on commit 41ab597

Please sign in to comment.