We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9390ee3 commit bfc30d2Copy full SHA for bfc30d2
lfs.c
@@ -5256,7 +5256,7 @@ static int lfs_shrink_checkblock(void *data, lfs_block_t block) {
5256
static int lfs_fs_grow_(lfs_t *lfs, lfs_size_t block_count) {
5257
int err;
5258
5259
- if (block_count == lfs->block_count) {
+ if (block_count == lfs->block_count && (lfs->cfg->flags & LFS_CFG_DISABLE_BLOCK_COUNT_CHECK) == 0) {
5260
return 0;
5261
}
5262
0 commit comments