Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-04-22 19:42:05 +0300
committerChristopher Haster <chaster@utexas.edu>2017-04-22 23:42:05 +0300
commit789286a25748649f46afebec6566d00763a0074e (patch)
treeec3970bd33da5077944f0c30736cfa8276b22b5e /tests/stats.py
parent3b9d6630c8fab475307d95824c368d45cd6ba41a (diff)
Simplified config
Before, the lfs had multiple paths to determine config options: - lfs_config struct passed during initialization - lfs_bd_info struct passed during block device initialization - compile time options This allowed different developers to provide their own needs to the filesystem, such as the block device capabilities and the higher level user's own tweaks. However, this comes with additional complexity and action required when the configurations are incompatible. For now, this has been reduced to all information (including block device function pointers) being passed through the lfs_config struct. We just defer more complicated handling of configuration options to the top level user. This simplifies configuration handling and gives the top level user the responsibility to handle configuration, which they probably would have wanted to do anyways.
Diffstat (limited to 'tests/stats.py')
-rwxr-xr-xtests/stats.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stats.py b/tests/stats.py
index b0c66a3..2ba1fb6 100755
--- a/tests/stats.py
+++ b/tests/stats.py
@@ -7,12 +7,12 @@ import os
import re
def main():
- with open('blocks/info') as file:
- s = struct.unpack('<LLL4xQ', file.read())
+ with open('blocks/config') as file:
+ s = struct.unpack('<LLLL', file.read())
print 'read_size: %d' % s[0]
print 'prog_size: %d' % s[1]
- print 'erase_size: %d' % s[2]
- print 'total_size: %d' % s[3]
+ print 'block_size: %d' % s[2]
+ print 'block_size: %d' % s[3]
print 'real_size: %d' % sum(
os.path.getsize(os.path.join('blocks', f))