MCPcopy Create free account
hub / github.com/archlinux/archinstall / table_data

Method table_data

archinstall/lib/models/device.py:545–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 3

trFunction · 0.90
format_sizeMethod · 0.80
format_highestMethod · 0.80

Tested by

no test coverage detected