Renamed inline_size -> shrub_size
There's a strong argument for naming this inline_size as that's more likely what users expect, but shrub_size is just the more correct name and avoids confusion around having multiple names for the same thing. It also highlights that shrubs in littlefs3 are a bit different than inline files in littlefs2, and that this config also affects large files with a shrubbed root. May rerevert this in the future, but probably only if there is significant user confusion.
This commit is contained in:
+3
-3
@@ -1669,7 +1669,7 @@ code = '''
|
||||
defines.BADBIT = -1
|
||||
defines.BADBLOCK_BEHAVIOR = 'LFS3_EMUBD_BADBLOCK_PROGFLIP'
|
||||
# force the file to create a btree
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = '2*FRAGMENT_SIZE'
|
||||
@@ -2179,7 +2179,7 @@ code = '''
|
||||
[cases.test_ck_ckfetches_btree]
|
||||
defines.BADBIT = -1
|
||||
# force the file to create a btree
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = '2*FRAGMENT_SIZE'
|
||||
@@ -2442,7 +2442,7 @@ defines.BADBLOCK_BEHAVIOR = [
|
||||
'LFS3_EMUBD_BADBLOCK_READFLIP',
|
||||
]
|
||||
# force the file to create a btree
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = '2*FRAGMENT_SIZE'
|
||||
|
||||
@@ -106,7 +106,7 @@ code = '''
|
||||
defines.N = [0, 1, 2, 3, 4]
|
||||
defines.SIZE = 'N*FRAGMENT_SIZE'
|
||||
# force a btree node
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.SYNC = [false, true]
|
||||
in = 'lfs3.c'
|
||||
@@ -502,7 +502,7 @@ defines.N = [0, 1, 2, 3, 4]
|
||||
defines.SIZE = 'N*FRAGMENT_SIZE'
|
||||
defines.CHUNK = [32, 8, 1]
|
||||
# force a btree node
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.SYNC = [false, true]
|
||||
defines.REMOUNT = [false, true]
|
||||
@@ -2432,7 +2432,7 @@ defines.N = [0, 1, 2, 3, 4]
|
||||
defines.SIZE = 'N*FRAGMENT_SIZE'
|
||||
defines.CHUNK = [32, 8, 1]
|
||||
# force a btree node
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.SYNC = [false, true]
|
||||
defines.REMOUNT = [false, true]
|
||||
@@ -2884,7 +2884,7 @@ defines.N = [0, 1, 2, 3, 4]
|
||||
defines.SIZE = 'N*FRAGMENT_SIZE'
|
||||
defines.CHUNK = [32, 8, 1]
|
||||
# force a btree node
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.SYNC = [false, true]
|
||||
defines.REMOUNT = [false, true]
|
||||
|
||||
@@ -128,7 +128,7 @@ defines.POWERLOSS_BEHAVIOR = [
|
||||
]
|
||||
defines.MKCONSISTENT = [false, true]
|
||||
# inlining has a tendency to hide sync issues, so try without
|
||||
defines.INLINE_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
defines.SHRUB_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
defines.N = [1, 2, 4, 8, 16, 32, 64]
|
||||
defines.SIZE = [
|
||||
'0',
|
||||
@@ -228,7 +228,7 @@ defines.POWERLOSS_BEHAVIOR = [
|
||||
]
|
||||
defines.MKCONSISTENT = [false, true]
|
||||
# inlining has a tendency to hide sync issues, so try without
|
||||
defines.INLINE_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
defines.SHRUB_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
defines.N = [1, 2, 4, 8, 16, 32, 64]
|
||||
defines.OPS = 256
|
||||
defines.SIZE = [
|
||||
@@ -459,7 +459,7 @@ defines.POWERLOSS_BEHAVIOR = [
|
||||
]
|
||||
defines.MKCONSISTENT = [false, true]
|
||||
# inlining has a tendency to hide sync issues, so try without
|
||||
defines.INLINE_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
defines.SHRUB_SIZE = ['BLOCK_SIZE/4', '0']
|
||||
# note dirs x files grows O(n^2)
|
||||
defines.N = [1, 2, 4, 8]
|
||||
defines.M = 'N'
|
||||
|
||||
@@ -2487,7 +2487,7 @@ defines.LOOKAHEAD = [false, true]
|
||||
defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
defines.SIZE = '2*BLOCK_SIZE'
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.TRUNC = [false, true]
|
||||
code = '''
|
||||
lfs3_t lfs3;
|
||||
@@ -2805,7 +2805,7 @@ defines.LOOKAHEAD = [false, true]
|
||||
defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
defines.SIZE = '2*BLOCK_SIZE'
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
code = '''
|
||||
lfs3_t lfs3;
|
||||
lfs3_format(&lfs3,
|
||||
@@ -3134,7 +3134,7 @@ defines.LOOKAHEAD = [false, true]
|
||||
defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
defines.SIZE = '2*BLOCK_SIZE'
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.DESYNC = [false, true]
|
||||
code = '''
|
||||
lfs3_t lfs3;
|
||||
@@ -7263,7 +7263,7 @@ defines.LOOKAHEAD = [false, true]
|
||||
defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
# limit files to very simple btrees
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = '2*FRAGMENT_SIZE'
|
||||
@@ -7439,7 +7439,7 @@ defines.LOOKAHEAD = [false, true]
|
||||
defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
# limit files to very simple btrees
|
||||
defines.INLINE_SIZE = 0
|
||||
defines.SHRUB_SIZE = 0
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = '2*FRAGMENT_SIZE'
|
||||
@@ -7616,7 +7616,7 @@ defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
# this configuration should create a 2-layer bshrub, which may be
|
||||
# a bit delicate
|
||||
defines.INLINE_SIZE = 'BLOCK_SIZE/4'
|
||||
defines.SHRUB_SIZE = 'BLOCK_SIZE/4'
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = 'BLOCK_SIZE'
|
||||
@@ -7801,7 +7801,7 @@ defines.CKMETA = [false, true]
|
||||
defines.CKDATA = [false, true]
|
||||
# this configuration should create a 2-layer bshrub, which may be
|
||||
# a bit delicate
|
||||
defines.INLINE_SIZE = 'BLOCK_SIZE/4'
|
||||
defines.SHRUB_SIZE = 'BLOCK_SIZE/4'
|
||||
defines.CRYSTAL_THRESH = -1
|
||||
defines.FRAGMENT_SIZE = 'BLOCK_SIZE/8'
|
||||
defines.SIZE = 'BLOCK_SIZE'
|
||||
|
||||
Reference in New Issue
Block a user