alloc: Added the concept of block allocator flags
Currently this just has one flag the replaces the previous `erase` argument: LFS3_ALLOC_ERASE 0x00000001 Please erase the block Benefits include: - Slightly better readability at lfs3_alloc call sites. - Possibility of more allocator flags in the future: - LFS3_ALLOC_EMERGENCY - Use reserved blocks - Uh, that's all I can think of right now No code changes.
This commit is contained in:
@@ -15,6 +15,7 @@ FILTERS = [
|
||||
('--gc', 'GC', "Filter by LFS3_GC_* flags."),
|
||||
(['--i', '--info'], 'I', "Filter by LFS3_I_* flags."),
|
||||
(['--t', '--traversal'], 'T', "Filter by LFS3_T_* flags."),
|
||||
('--alloc', 'ALLOC', "Filter by LFS3_ALLOC_* flags."),
|
||||
(['--rc', '--rcompat'], 'RCOMPAT', "Filter by LFS3_RCOMPAT_* flags."),
|
||||
(['--wc', '--wcompat'], 'WCOMPAT', "Filter by LFS3_WCOMPAT_* flags."),
|
||||
(['--oc', '--ocompat'], 'OCOMPAT', "Filter by LFS3_OCOMPAT_* flags."),
|
||||
@@ -155,6 +156,9 @@ FLAGS = [
|
||||
('t_DIRTY', 0x02000000, "Filesystem modified during traversal" ),
|
||||
('t_MUTATED', 0x01000000, "Filesystem modified by traversal" ),
|
||||
|
||||
# Block allocator flags
|
||||
('alloc_ERASE', 0x00000001, "Please erase the block" ),
|
||||
|
||||
# Read-compat flags
|
||||
('RCOMPAT_NONSTANDARD',
|
||||
0x00000001, "Non-standard filesystem format" ),
|
||||
|
||||
Reference in New Issue
Block a user