Skip to content

Commit bfc30d2

Browse files
Adapt to #1094
1 parent 9390ee3 commit bfc30d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5256,7 +5256,7 @@ static int lfs_shrink_checkblock(void *data, lfs_block_t block) {
52565256
static int lfs_fs_grow_(lfs_t *lfs, lfs_size_t block_count) {
52575257
int err;
52585258

5259-
if (block_count == lfs->block_count) {
5259+
if (block_count == lfs->block_count && (lfs->cfg->flags & LFS_CFG_DISABLE_BLOCK_COUNT_CHECK) == 0) {
52605260
return 0;
52615261
}
52625262

0 commit comments

Comments
 (0)