(self)
| 543 | return SectorSize(sector_size, Unit.B) |
| 544 | |
| 545 | def table_data(self) -> dict[str, str]: |
| 546 | end = self.start + self.length |
| 547 | |
| 548 | part_info = { |
| 549 | 'Name': self.name, |
| 550 | 'Type': self.type.value, |
| 551 | 'Filesystem': self.fs_type.value if self.fs_type else tr('Unknown'), |
| 552 | 'Path': str(self.path), |
| 553 | 'Start': self.start.format_size(Unit.sectors, self.sector_size, include_unit=False), |
| 554 | 'End': end.format_size(Unit.sectors, self.sector_size, include_unit=False), |
| 555 | 'Size': self.length.format_highest(), |
| 556 | 'Flags': ', '.join(f.description for f in self.flags), |
| 557 | } |
| 558 | |
| 559 | if self.btrfs_subvol_infos: |
| 560 | part_info['Btrfs vol.'] = f'{len(self.btrfs_subvol_infos)} subvolumes' |
| 561 | |
| 562 | return part_info |
| 563 | |
| 564 | @classmethod |
| 565 | def from_partition( |
nothing calls this directly
no test coverage detected