shithub: lwext4

Download patch

ref: f0b072a16309bc15b0caf64444ac650f09b7d966
parent: 660796003c2fb1cc29e1f1da3a4ff8b3463fe205
author: gkostka <kostka.grzegorz@gmail.com>
date: Mon Sep 21 20:14:22 EDT 2015

Increase max test buffer size

--- a/blockdev/test_lwext4.c
+++ b/blockdev/test_lwext4.c
@@ -36,7 +36,7 @@
 #include "test_lwext4.h"
 
 /**@brief   Read-write size*/
-#define READ_MAX_WRITE_SZIZE 1024 * 8
+#define READ_MAX_WRITE_SZIZE 1024 * 16
 
 /**@brief   File read/write buffer*/
 static uint8_t rw_buff[READ_MAX_WRITE_SZIZE];
@@ -232,6 +232,9 @@
 	uint64_t size_bytes;
 
 	ext4_file f;
+
+	if (rw_size > READ_MAX_WRITE_SZIZE)
+		return false;
 
 	printf("file_test:\n");
 	printf("  rw size: %" PRIu32 "\n", rw_szie);