From 7da44f12aea24e37b9faa313475584f7f01cca2c Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 18 Nov 2025 00:48:50 -0600 Subject: [PATCH] Added redund hints to more tags Well, kinda. At the moment we don't have any reund support (it's a TODO), so arguably redund=0 and this is just a comment tweak. Though our mdirs _are_ already redund=1... so maybe these should actually set redund=1? It's unclear, so for now I've just tweaked the comment, and we should probably revisit when _actually_ implementing meta/data redundancy. --- Note this only really affects struct tags: LFS3_TAG_STRUCT 0x04tt v--- -1-- +ttt tttt LFS3_TAG_BRANCH 0x040r v--- -1-- +--- --rr LFS3_TAG_DATA 0x0404 v--- -1-- +--- -1rr LFS3_TAG_BLOCK 0x0408 v--- -1-- +--- 1err LFS3_TAG_DDKEY* 0x0410 v--- -1-- +--1 --rr LFS3_TAG_DID 0x0420 v--- -1-- +-1- ---- LFS3_TAG_BSHRUB 0x0428 v--- -1-- +-1- 1-rr LFS3_TAG_BTREE 0x042c v--- -1-- +-1- 11rr LFS3_TAG_MROOT 0x0431 v--- -1-- +-11 --rr LFS3_TAG_MDIR 0x0435 v--- -1-- +-11 -1rr LFS3_TAG_MSHRUB+ 0x0438 v--- -1-- +-11 1-rr LFS3_TAG_MTREE 0x043c v--- -1-- +-11 11rr LFS3_TAG_BMRANGE 0x044u v--- -1-- +1-- ++uu LFS3_TAG_BMFREE 0x0440 v--- -1-- +1-- ---- LFS3_TAG_BMINUSE 0x0441 v--- -1-- +1-- ---1 LFS3_TAG_BMERASED 0x0442 v--- -1-- +1-- --1- LFS3_TAG_BMBAD 0x0443 v--- -1-- +1-- --11 LFS3_TAG_DDRC* 0x0450 v--- -1-- +1-1 ---- LFS3_TAG_DDPCOEFF* 0x0451 v--- -1-- +1-1 ---1 LFs3_TAG_PCOEFFMAP* 0x0460 v--- -1-- +11- ---- This redund hint may be useful for debugging and the theoretical CKMETAREDUND feature. --- scripts/dbgbmap.py | 6 +++--- scripts/dbgbmapsvg.py | 6 +++--- scripts/dbgbtree.py | 6 +++--- scripts/dbglfs3.py | 6 +++--- scripts/dbgmtree.py | 6 +++--- scripts/dbgrbyd.py | 6 +++--- scripts/dbgtag.py | 6 +++--- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/scripts/dbgbmap.py b/scripts/dbgbmap.py index 711234f3..62d6607a 100755 --- a/scripts/dbgbmap.py +++ b/scripts/dbgbmap.py @@ -124,7 +124,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -135,10 +135,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbgbmapsvg.py b/scripts/dbgbmapsvg.py index 32664007..93ffda97 100755 --- a/scripts/dbgbmapsvg.py +++ b/scripts/dbgbmapsvg.py @@ -144,7 +144,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -155,10 +155,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbgbtree.py b/scripts/dbgbtree.py index b703ba7a..313b003a 100755 --- a/scripts/dbgbtree.py +++ b/scripts/dbgbtree.py @@ -30,7 +30,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -41,10 +41,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbglfs3.py b/scripts/dbglfs3.py index c3e04c86..4eaf679b 100755 --- a/scripts/dbglfs3.py +++ b/scripts/dbglfs3.py @@ -49,7 +49,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -60,10 +60,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbgmtree.py b/scripts/dbgmtree.py index cd42b80c..8718e02d 100755 --- a/scripts/dbgmtree.py +++ b/scripts/dbgmtree.py @@ -30,7 +30,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -41,10 +41,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbgrbyd.py b/scripts/dbgrbyd.py index ff693912..c29502e6 100755 --- a/scripts/dbgrbyd.py +++ b/scripts/dbgrbyd.py @@ -40,7 +40,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -51,10 +51,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr diff --git a/scripts/dbgtag.py b/scripts/dbgtag.py index 647c4b4a..343ed04e 100755 --- a/scripts/dbgtag.py +++ b/scripts/dbgtag.py @@ -24,7 +24,7 @@ TAG_GEOMETRY = 0x0138 # v--- ---1 +-11 1--- TAG_NAMELIMIT = 0x0139 # v--- ---1 +-11 1--1 TAG_FILELIMIT = 0x013a # v--- ---1 +-11 1-1- TAG_GDELTA = 0x0200 ## v--- --1- +ttt tttt -TAG_GRMDELTA = 0x0230 # v--- --1- +-11 ---- +TAG_GRMDELTA = 0x0230 # v--- --1- +-11 --++ TAG_GBMAPDELTA = 0x0234 # v--- --1- +-11 -1rr TAG_NAME = 0x0300 ## v--- --11 +ttt tttt TAG_BNAME = 0x0300 # v--- --11 +--- ---- @@ -35,10 +35,10 @@ TAG_BOOKMARK = 0x0304 # v--- --11 +--- -1-- TAG_MNAME = 0x0330 # v--- --11 +-11 ---- TAG_STRUCT = 0x0400 ## v--- -1-- +ttt tttt TAG_BRANCH = 0x0400 # v--- -1-- +--- --rr -TAG_DATA = 0x0404 # v--- -1-- +--- -1-- +TAG_DATA = 0x0404 # v--- -1-- +--- -1rr TAG_BLOCK = 0x0408 # v--- -1-- +--- 1err TAG_DID = 0x0420 # v--- -1-- +-1- ---- -TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1--- +TAG_BSHRUB = 0x0428 # v--- -1-- +-1- 1-rr TAG_BTREE = 0x042c # v--- -1-- +-1- 11rr TAG_MROOT = 0x0431 # v--- -1-- +-11 --rr TAG_MDIR = 0x0435 # v--- -1-- +-11 -1rr