- 
                Notifications
    You must be signed in to change notification settings 
- Fork 931
Open
Labels
Description
In the code it seems like files stop being inline when they are more than 1/8 of block:
Lines 4331 to 4345 in 8e251dd
| LFS_ASSERT(lfs->cfg->inline_max == (lfs_size_t)-1 | |
| || lfs->cfg->inline_max <= ((lfs->cfg->metadata_max) | |
| ? lfs->cfg->metadata_max | |
| : lfs->cfg->block_size)/8); | |
| lfs->inline_max = lfs->cfg->inline_max; | |
| if (lfs->inline_max == (lfs_size_t)-1) { | |
| lfs->inline_max = 0; | |
| } else if (lfs->inline_max == 0) { | |
| lfs->inline_max = lfs_min( | |
| lfs->cfg->cache_size, | |
| lfs_min( | |
| lfs->attr_max, | |
| ((lfs->cfg->metadata_max) | |
| ? lfs->cfg->metadata_max | |
| : lfs->cfg->block_size)/8)); | 
But in the readme it written that the threshold is 14/ block:
Lines 1470 to 1472 in 8e251dd
| Once the file exceeds 1/4 the block size, we switch to a CTZ skip-list. This | |
| means that our files never use more than 4x storage overhead, decreasing as | |
| the file grows in size. |