Adopted lowercase => internal pattern for LFS3_tag_* tags
This includes the mask/rm/grow bits: - LFS3_tag_RM - LFS3_tag_GROW - LFS3_tag_MASK0/2/8/12 Our in-device only handle types: - LFS3_tag_ORPHAN - LFS3_tag_TRV - LFS3_tag_UNKNOWN And in-device only tags with special behavior: - LFS3_tag_INTERNAL - LFS3_tag_RATTRS - LFS3_tag_SHRUBCOMMIT - LFS3_tag_GRMPUSH - LFS3_tag_MOVE - LFS3_tag_ATTRS Usually I'm not a big fan of case-sensitive naming patterns, but this has been useful for self-documenting what compat flags are in-device only. Might as well extend the idea to our tag definitions.
This commit is contained in:
@@ -5001,7 +5001,7 @@ code = '''
|
||||
printf("pos = %d, %d\n", pos, weight);
|
||||
lfs3_bshrub_commit(&lfs3, &file.b, pos, LFS3_RATTRS(
|
||||
LFS3_RATTR_DATA(
|
||||
LFS3_TAG_GROW | tag, -(weight/2),
|
||||
LFS3_tag_GROW | tag, -(weight/2),
|
||||
&data))) => 0;
|
||||
|
||||
pos = pos - (weight/2) + 1;
|
||||
@@ -5111,7 +5111,7 @@ code = '''
|
||||
printf("pos = %d, %d\n", pos, weight);
|
||||
lfs3_bshrub_commit(&lfs3, &file.b, pos, LFS3_RATTRS(
|
||||
LFS3_RATTR_DATA(
|
||||
LFS3_TAG_GROW | tag, -(weight/2),
|
||||
LFS3_tag_GROW | tag, -(weight/2),
|
||||
&data))) => 0;
|
||||
|
||||
pos = pos - (weight/2) + 1;
|
||||
|
||||
Reference in New Issue
Block a user