We have block_buffer equal to MAX_BLOCK_SIZE. If we're working with 4k
aligned device, it is not enough, since we're reading too blocks.
Let's double it.
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
#define MAX_BLOCK_SIZE 4096
#define MAX_BLOCK_SIZE 4096
-static unsigned char block_buffer[MAX_BLOCK_SIZE];
+static unsigned char block_buffer[MAX_BLOCK_SIZE * 2];
static void
add_new_partition(struct partition_t** list, int part_number, const char *part_type,
static void
add_new_partition(struct partition_t** list, int part_number, const char *part_type,