|
@@ -26,7 +26,7 @@ code = '''
|
|
|
}
|
|
}
|
|
|
for (int n = 0; n < FILES; n++) {
|
|
for (int n = 0; n < FILES; n++) {
|
|
|
if (GC) {
|
|
if (GC) {
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
}
|
|
}
|
|
|
size_t size = strlen(names[n]);
|
|
size_t size = strlen(names[n]);
|
|
|
for (lfs_size_t i = 0; i < SIZE; i += size) {
|
|
for (lfs_size_t i = 0; i < SIZE; i += size) {
|
|
@@ -81,7 +81,7 @@ code = '''
|
|
|
memcpy(buffer, names[n], size);
|
|
memcpy(buffer, names[n], size);
|
|
|
for (int i = 0; i < SIZE; i += size) {
|
|
for (int i = 0; i < SIZE; i += size) {
|
|
|
if (GC) {
|
|
if (GC) {
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
}
|
|
}
|
|
|
lfs_file_write(&lfs, &file, buffer, size) => size;
|
|
lfs_file_write(&lfs, &file, buffer, size) => size;
|
|
|
}
|
|
}
|
|
@@ -255,8 +255,8 @@ code = '''
|
|
|
}
|
|
}
|
|
|
res => LFS_ERR_NOSPC;
|
|
res => LFS_ERR_NOSPC;
|
|
|
|
|
|
|
|
- // note that lfs_fs_findfreeblocks should not error here
|
|
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ // note that lfs_fs_gc should not error here
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
|
|
|
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
|
lfs_unmount(&lfs) => 0;
|
|
lfs_unmount(&lfs) => 0;
|
|
@@ -309,8 +309,8 @@ code = '''
|
|
|
}
|
|
}
|
|
|
res => LFS_ERR_NOSPC;
|
|
res => LFS_ERR_NOSPC;
|
|
|
|
|
|
|
|
- // note that lfs_fs_findfreeblocks should not error here
|
|
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ // note that lfs_fs_gc should not error here
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
|
|
|
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
|
lfs_unmount(&lfs) => 0;
|
|
lfs_unmount(&lfs) => 0;
|
|
@@ -351,8 +351,8 @@ code = '''
|
|
|
count += 1;
|
|
count += 1;
|
|
|
}
|
|
}
|
|
|
err => LFS_ERR_NOSPC;
|
|
err => LFS_ERR_NOSPC;
|
|
|
- // note that lfs_fs_findfreeblocks should not error here
|
|
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ // note that lfs_fs_gc should not error here
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
|
|
|
|
|
|
lfs_remove(&lfs, "exhaustion") => 0;
|
|
lfs_remove(&lfs, "exhaustion") => 0;
|
|
@@ -451,8 +451,8 @@ code = '''
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // note that lfs_fs_findfreeblocks should not error here
|
|
|
|
|
- lfs_fs_findfreeblocks(&lfs) => 0;
|
|
|
|
|
|
|
+ // note that lfs_fs_gc should not error here
|
|
|
|
|
+ lfs_fs_gc(&lfs) => 0;
|
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
lfs_file_close(&lfs, &file) => 0;
|
|
|
|
|
|
|
|
lfs_unmount(&lfs) => 0;
|
|
lfs_unmount(&lfs) => 0;
|