forked from Imagelibrary/littlefs
Dropped -m/--mleaf-weight from dbg scripts
Now that we're assuming a perfect compaction algorithm, and an infinitely compatible mleaf-bits, there really shouldn't be any reason to support non-standard mleaf-bits in our scripts, right? If a configurable mleaf-bits becomes necessary, we can always add this back in the future.
This commit is contained in:
@@ -1179,7 +1179,6 @@ class Rbyd:
|
|||||||
def main(disk, mroots=None, *,
|
def main(disk, mroots=None, *,
|
||||||
block_size=None,
|
block_size=None,
|
||||||
block_count=None,
|
block_count=None,
|
||||||
mleaf_weight=None,
|
|
||||||
block=None,
|
block=None,
|
||||||
off=None,
|
off=None,
|
||||||
size=None,
|
size=None,
|
||||||
@@ -1340,12 +1339,6 @@ def main(disk, mroots=None, *,
|
|||||||
block_size=block_size,
|
block_size=block_size,
|
||||||
block_count=block_count)
|
block_count=block_count)
|
||||||
|
|
||||||
|
|
||||||
# determine the mleaf_weight from the block_size, this is just for
|
|
||||||
# printing purposes
|
|
||||||
if mleaf_weight is None:
|
|
||||||
mleaf_weight = 1 << m.ceil(m.log2(block_size // 8))
|
|
||||||
|
|
||||||
#### traverse the filesystem
|
#### traverse the filesystem
|
||||||
|
|
||||||
# fetch the mroot chain
|
# fetch the mroot chain
|
||||||
@@ -1637,11 +1630,6 @@ if __name__ == "__main__":
|
|||||||
'--block-count',
|
'--block-count',
|
||||||
type=lambda x: int(x, 0),
|
type=lambda x: int(x, 0),
|
||||||
help="Block count in blocks.")
|
help="Block count in blocks.")
|
||||||
parser.add_argument(
|
|
||||||
'-m', '--mleaf-weight',
|
|
||||||
type=lambda x: int(x, 0),
|
|
||||||
help="Maximum weight of mdirs for mid decoding. Defaults to a "
|
|
||||||
"block_size derived value.")
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-@', '--block',
|
'-@', '--block',
|
||||||
nargs='?',
|
nargs='?',
|
||||||
|
|||||||
@@ -1655,7 +1655,6 @@ def dbg_fstruct(f, block_size, mdir, rid, tag, j, d, data, *,
|
|||||||
def main(disk, mroots=None, *,
|
def main(disk, mroots=None, *,
|
||||||
block_size=None,
|
block_size=None,
|
||||||
block_count=None,
|
block_count=None,
|
||||||
mleaf_weight=None,
|
|
||||||
color='auto',
|
color='auto',
|
||||||
**args):
|
**args):
|
||||||
# figure out what color should be
|
# figure out what color should be
|
||||||
@@ -1686,8 +1685,7 @@ def main(disk, mroots=None, *,
|
|||||||
|
|
||||||
# determine the mleaf_weight from the block_size, this is just for
|
# determine the mleaf_weight from the block_size, this is just for
|
||||||
# printing purposes
|
# printing purposes
|
||||||
if mleaf_weight is None:
|
mleaf_weight = 1 << m.ceil(m.log2(block_size // 8))
|
||||||
mleaf_weight = 1 << m.ceil(m.log2(block_size // 8))
|
|
||||||
|
|
||||||
# before we print, we need to do a pass for a few things:
|
# before we print, we need to do a pass for a few things:
|
||||||
# - find the actual mroot
|
# - find the actual mroot
|
||||||
@@ -2184,11 +2182,6 @@ if __name__ == "__main__":
|
|||||||
'--block-count',
|
'--block-count',
|
||||||
type=lambda x: int(x, 0),
|
type=lambda x: int(x, 0),
|
||||||
help="Block count in blocks.")
|
help="Block count in blocks.")
|
||||||
parser.add_argument(
|
|
||||||
'-m', '--mleaf-weight',
|
|
||||||
type=lambda x: int(x, 0),
|
|
||||||
help="Maximum weight of mdirs for mid decoding. Defaults to a "
|
|
||||||
"block_size derived value.")
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--color',
|
'--color',
|
||||||
choices=['never', 'always', 'auto'],
|
choices=['never', 'always', 'auto'],
|
||||||
|
|||||||
@@ -812,7 +812,6 @@ class Rbyd:
|
|||||||
def main(disk, mroots=None, *,
|
def main(disk, mroots=None, *,
|
||||||
block_size=None,
|
block_size=None,
|
||||||
block_count=None,
|
block_count=None,
|
||||||
mleaf_weight=None,
|
|
||||||
color='auto',
|
color='auto',
|
||||||
**args):
|
**args):
|
||||||
# figure out what color should be
|
# figure out what color should be
|
||||||
@@ -843,8 +842,7 @@ def main(disk, mroots=None, *,
|
|||||||
|
|
||||||
# determine the mleaf_weight from the block_size, this is just for
|
# determine the mleaf_weight from the block_size, this is just for
|
||||||
# printing purposes
|
# printing purposes
|
||||||
if mleaf_weight is None:
|
mleaf_weight = 1 << m.ceil(m.log2(block_size // 8))
|
||||||
mleaf_weight = 1 << m.ceil(m.log2(block_size // 8))
|
|
||||||
|
|
||||||
# before we print, we need to do a pass for a few things:
|
# before we print, we need to do a pass for a few things:
|
||||||
# - find the actual mroot
|
# - find the actual mroot
|
||||||
@@ -1671,11 +1669,6 @@ if __name__ == "__main__":
|
|||||||
'--block-count',
|
'--block-count',
|
||||||
type=lambda x: int(x, 0),
|
type=lambda x: int(x, 0),
|
||||||
help="Block count in blocks.")
|
help="Block count in blocks.")
|
||||||
parser.add_argument(
|
|
||||||
'-m', '--mleaf-weight',
|
|
||||||
type=lambda x: int(x, 0),
|
|
||||||
help="Maximum weight of mdirs for mid decoding. Defaults to a "
|
|
||||||
"block_size derived value.")
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--color',
|
'--color',
|
||||||
choices=['never', 'always', 'auto'],
|
choices=['never', 'always', 'auto'],
|
||||||
|
|||||||
Reference in New Issue
Block a user