Closed arvidjaar closed 7 years ago
Oh wow, this is bad. Yeah, I managed to break the str() functionality of Chunk in 3d029f46
@@ -586,7 +605,7 @@ class Chunk(object):
@property
def flags_str(self):
- return btrfs.utils.block_group_flags_str(self.type)
+ return btrfs.utils.flags_str(self.flags, _block_group_flags_str_map)
def __str__(self):
return "chunk vaddr {self.vaddr} type {self.flags_str} length {self.length} " \
In the chunk_item struct, it's called type, not flags.
Fixed in 3106bb8, thanks for reporting the error.
Just download version 6.