gbmap: Tried to adopt the gbmap name more consistently
Having gbmap/bmap used in different places for the same thing was confusing. Preferring gbmap as it is consistent with other gstate (grm queue, gcksums), even if it is a bit noisy. It's interesting to note what didn't change: - The BM* range tags: LFS3_TAG_BMFREE, etc. These already differs from the GBMAP* prefix enough, and adopting GBM* would risk confusion for actual gstate. - The gbmap revdbg string: "bb~r". We don't have enough characters for anything else! - dbgbmap.py/dbgbmapsvg.py. These aren't actually related to the gbmap, so the name difference is a good thing.
This commit is contained in:
+4
-4
@@ -1025,7 +1025,7 @@ code = '''
|
||||
}
|
||||
|
||||
if (tinfo.btype == LFS3_BTYPE_BTREE
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_BMAP) {
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_GBMAP) {
|
||||
if (k == i) {
|
||||
// clobber this block
|
||||
printf("clobbering 0x%x\n", tinfo.block);
|
||||
@@ -1125,7 +1125,7 @@ code = '''
|
||||
|
||||
if ((tinfo.btype == LFS3_BTYPE_BTREE
|
||||
|| tinfo.btype == LFS3_BTYPE_DATA)
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_BMAP) {
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_GBMAP) {
|
||||
if (k == i) {
|
||||
// clobber this block
|
||||
printf("clobbering 0x%x\n", tinfo.block);
|
||||
@@ -1231,7 +1231,7 @@ code = '''
|
||||
}
|
||||
|
||||
if (tinfo.btype == LFS3_BTYPE_BTREE
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_BMAP) {
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_GBMAP) {
|
||||
// found an interesting block?
|
||||
if (k == i) {
|
||||
badblock = tinfo.block;
|
||||
@@ -1382,7 +1382,7 @@ code = '''
|
||||
|
||||
if ((tinfo.btype == LFS3_BTYPE_BTREE
|
||||
|| tinfo.btype == LFS3_BTYPE_DATA)
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_BMAP) {
|
||||
&& lfs3_t_tstate(trv.b.h.flags) != LFS3_TSTATE_GBMAP) {
|
||||
// found an interesting block?
|
||||
if (k == i) {
|
||||
badblock = tinfo.block;
|
||||
|
||||
Reference in New Issue
Block a user