Renamed LFS_I_* flags to match LFS_GC_*
- LFS_I_INCONSISTENT -> LFS_I_MKCONSISTENT - LFS_I_CANLOOKAHEAD -> LFS_I_LOOKAHEAD - LFS_I_UNCOMPACTED -> LFS_I_COMPACT - LFS_I_CANCKMETA -> LFS_I_CKMETA - LFS_I_CANCKDATA -> LFS_I_CKDATA This just makes everything easier to read/pattern match, even if it's a bit inaccurate english-wise. The imperative transformations were also wildly inconsistent...
This commit is contained in:
@@ -5318,7 +5318,7 @@ code = '''
|
||||
|
||||
struct lfs_fsinfo fsinfo;
|
||||
lfsr_fs_stat(&lfs, &fsinfo) => 0;
|
||||
assert(!(fsinfo.flags & LFS_I_INCONSISTENT));
|
||||
assert(!(fsinfo.flags & LFS_I_MKCONSISTENT));
|
||||
|
||||
// double check the actual disk state, it's easy for littlefs to
|
||||
// lie here
|
||||
@@ -5454,7 +5454,7 @@ code = '''
|
||||
|
||||
struct lfs_fsinfo fsinfo;
|
||||
lfsr_fs_stat(&lfs, &fsinfo) => 0;
|
||||
assert(!(fsinfo.flags & LFS_I_INCONSISTENT));
|
||||
assert(!(fsinfo.flags & LFS_I_MKCONSISTENT));
|
||||
|
||||
// double check the actual disk state, it's easy for littlefs to
|
||||
// lie here
|
||||
@@ -5604,7 +5604,7 @@ code = '''
|
||||
|
||||
struct lfs_fsinfo fsinfo;
|
||||
lfsr_fs_stat(&lfs, &fsinfo) => 0;
|
||||
assert(!(fsinfo.flags & LFS_I_INCONSISTENT));
|
||||
assert(!(fsinfo.flags & LFS_I_MKCONSISTENT));
|
||||
|
||||
// double check the actual disk state, it's easy for littlefs to
|
||||
// lie here
|
||||
@@ -5760,7 +5760,7 @@ code = '''
|
||||
|
||||
struct lfs_fsinfo fsinfo;
|
||||
lfsr_fs_stat(&lfs, &fsinfo) => 0;
|
||||
assert(!(fsinfo.flags & LFS_I_INCONSISTENT));
|
||||
assert(!(fsinfo.flags & LFS_I_MKCONSISTENT));
|
||||
|
||||
// double check the actual disk state, it's easy for littlefs to
|
||||
// lie here
|
||||
|
||||
Reference in New Issue
Block a user