Renamed test_ftree->files, added fuzz tests, fixed a bug

The bug was a simple miscalculation on how much data to truncate when
carving a left-neighbor that also has a hole.
This commit is contained in:
Christopher Haster
2023-09-27 13:55:52 -05:00
parent cbbd77708d
commit a6357e8a5c
2 changed files with 293 additions and 42 deletions
+1 -1
View File
@@ -8685,7 +8685,7 @@ static int lfsr_file_flushbuffer(lfs_t *lfs, lfsr_file_t *file) {
DISK(
left_data.u.disk.block,
left_data.u.disk.off,
lfsr_data_size(&left_data) - left_overlap));
left_weight - left_overlap));
}
}