projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6607960
)
Increase max test buffer size
author
gkostka
<kostka.grzegorz@gmail.com>
Mon, 21 Sep 2015 22:14:22 +0000
(
00:14
+0200)
committer
gkostka
<kostka.grzegorz@gmail.com>
Mon, 21 Sep 2015 22:19:51 +0000
(
00:19
+0200)
blockdev/test_lwext4.c
patch
|
blob
|
history
diff --git
a/blockdev/test_lwext4.c
b/blockdev/test_lwext4.c
index 529f67b5137435e77c2311b730b72d7a95efd732..b59e2917b1aaa372a8acbb679c6cdf9f8da0c6ba 100644
(file)
--- 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];
@@
-233,6
+233,9
@@
bool test_lwext4_file_test(uint32_t rw_szie, uint32_t rw_count)
ext4_file f;
+ if (rw_size > READ_MAX_WRITE_SZIZE)
+ return false;
+
printf("file_test:\n");
printf(" rw size: %" PRIu32 "\n", rw_szie);
printf(" rw count: %" PRIu32 "\n", rw_count);