Renamed bsprout -> bmoss, bleaf -> bsprout
I just really don't like saying bleaf. Also I think the term moss describes inlined data a bit better.
This commit is contained in:
+4
-4
@@ -151,12 +151,12 @@ FLAGS = [
|
||||
0x0001, "Non-standard filesystem format" ),
|
||||
('RCOMPAT', 'WRONLY', 0x0002, "Reading is disallowed" ),
|
||||
('RCOMPAT', 'GRM', 0x0004, "May use a global-remove" ),
|
||||
('RCOMPAT', 'MSPROUT', 0x0010, "May use an inlined mdir" ),
|
||||
('RCOMPAT', 'MLEAF', 0x0020, "May use a single mdir pointer" ),
|
||||
('RCOMPAT', 'MMOSS', 0x0010, "May use an inlined mdir" ),
|
||||
('RCOMPAT', 'MSPROUT', 0x0020, "May use a single mdir pointer" ),
|
||||
('RCOMPAT', 'MSHRUB', 0x0040, "May use an inlined mtree" ),
|
||||
('RCOMPAT', 'MTREE', 0x0080, "May use an mdir btree" ),
|
||||
('RCOMPAT', 'BSPROUT', 0x0100, "Files may use inlined data" ),
|
||||
('RCOMPAT', 'BLEAF', 0x0200, "Files may use single block pointers" ),
|
||||
('RCOMPAT', 'BMOSS', 0x0100, "Files may use inlined data" ),
|
||||
('RCOMPAT', 'BSPROUT', 0x0200, "Files may use single block pointers" ),
|
||||
('RCOMPAT', 'BSHRUB', 0x0400, "Files may use inlined btrees" ),
|
||||
('RCOMPAT', 'BTREE', 0x0800, "Files may use btrees" ),
|
||||
|
||||
|
||||
+3
-3
@@ -1306,8 +1306,8 @@ def dbg_fstruct(f, block_size, mdir, rid, tag, j, d, data, *,
|
||||
m_width=0,
|
||||
color=False,
|
||||
args={}):
|
||||
# first decode possible rbyds/btrees, for sprouts/direct blocks we pretend
|
||||
# the entry itself is a single-element btree
|
||||
# first decode possible rbyds/btrees, for inlined data/direct
|
||||
# blocks we pretend the entry itself is a single-element btree
|
||||
|
||||
# inlined data?
|
||||
if tag == TAG_DATA:
|
||||
@@ -2158,7 +2158,7 @@ def main(disk, mroots=None, *,
|
||||
# print file contents?
|
||||
if ((tag == TAG_REG or tag == TAG_STICKYNOTE)
|
||||
and args.get('structs')):
|
||||
# inlined sprout?
|
||||
# inlined data?
|
||||
done, rid_, tag_, w_, j, d, data, _ = mdir.lookup(
|
||||
rid, TAG_DATA)
|
||||
if not done and rid_ == rid and tag_ == TAG_DATA:
|
||||
|
||||
Reference in New Issue
Block a user