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:
Christopher Haster
2025-01-08 03:23:07 -06:00
parent 585abc87cf
commit a4c74967ec
6 changed files with 395 additions and 397 deletions
+5 -7
View File
@@ -223,14 +223,12 @@ enum lfs_type {
0x08000000 // Mounted with LFS_M_CKDATACKSUMS
#endif
#define LFS_I_INCONSISTENT \
#define LFS_I_MKCONSISTENT \
0x00001000 // Filesystem needs mkconsistent to write
#define LFS_I_CANLOOKAHEAD \
0x00002000 // Lookahead buffer is not full
#define LFS_I_UNCOMPACTED \
0x00008000 // Filesystem may have uncompacted metadata
#define LFS_I_CANCKMETA 0x00010000 // Metadata checksums not checked recently
#define LFS_I_CANCKDATA 0x00020000 // Data checksums not checked recently
#define LFS_I_LOOKAHEAD 0x00002000 // Lookahead buffer is not full
#define LFS_I_COMPACT 0x00008000 // Filesystem may have uncompacted metadata
#define LFS_I_CKMETA 0x00010000 // Metadata checksums not checked recently
#define LFS_I_CKDATA 0x00020000 // Data checksums not checked recently
// internally used flags, don't use these
#define LFS_I_UNTIDY 0x00001000 // Filesystem may have orphaned stickynotes