Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2022-08-23 22:48:29 +0300
committerChristopher Haster <geky@geky.net>2022-08-24 03:21:38 +0300
commit3f4f85986e0a1ecc7d2b4717c0cc24b8070b1e75 (patch)
tree0c51bfdccc02f586abd87f989e3683efe1ed513b /runners/test_runner.c
parent4689678208e7339a448cfbc5619a09c73afc7ae3 (diff)
Readded support for mirror writes to a file in testbd
Before this was available implicitly by supporting both rambd and filebd as backends, but now that testbd is a bit more complicated and no longer maps directly to a block-device, this needs to be explicitly supported.
Diffstat (limited to 'runners/test_runner.c')
-rw-r--r--runners/test_runner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runners/test_runner.c b/runners/test_runner.c
index 392915a..b94bad5 100644
--- a/runners/test_runner.c
+++ b/runners/test_runner.c
@@ -610,6 +610,7 @@ static void run_powerloss_none(
.erase_value = ERASE_VALUE,
.erase_cycles = ERASE_CYCLES,
.badblock_behavior = BADBLOCK_BEHAVIOR,
+ .disk_path = test_disk,
};
int err = lfs_testbd_createcfg(&cfg, test_disk, &bdcfg);
@@ -672,6 +673,7 @@ static void run_powerloss_linear(
.erase_value = ERASE_VALUE,
.erase_cycles = ERASE_CYCLES,
.badblock_behavior = BADBLOCK_BEHAVIOR,
+ .disk_path = test_disk,
.power_cycles = i,
.powerloss_behavior = POWERLOSS_BEHAVIOR,
.powerloss_cb = powerloss_longjmp,
@@ -748,6 +750,7 @@ static void run_powerloss_exponential(
.erase_value = ERASE_VALUE,
.erase_cycles = ERASE_CYCLES,
.badblock_behavior = BADBLOCK_BEHAVIOR,
+ .disk_path = test_disk,
.power_cycles = i,
.powerloss_behavior = POWERLOSS_BEHAVIOR,
.powerloss_cb = powerloss_longjmp,
@@ -822,6 +825,7 @@ static void run_powerloss_cycles(
.erase_value = ERASE_VALUE,
.erase_cycles = ERASE_CYCLES,
.badblock_behavior = BADBLOCK_BEHAVIOR,
+ .disk_path = test_disk,
.power_cycles = (i < cycle_count) ? cycles[i] : 0,
.powerloss_behavior = POWERLOSS_BEHAVIOR,
.powerloss_cb = powerloss_longjmp,