File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,8 @@ def load_devices(self) -> None:
109109 partition_infos .append (
110110 _PartitionInfo .from_partition (
111111 partition ,
112+ lsblk_info ,
112113 fs_type ,
113- lsblk_info .partn ,
114- lsblk_info .partuuid ,
115- lsblk_info .uuid ,
116- lsblk_info .mountpoints ,
117114 subvol_infos
118115 )
119116 )
Original file line number Diff line number Diff line change @@ -450,11 +450,8 @@ def table_data(self) -> dict[str, str]:
450450 def from_partition (
451451 cls ,
452452 partition : Partition ,
453+ lsblk_info : LsblkInfo ,
453454 fs_type : FilesystemType | None ,
454- partn : int | None ,
455- partuuid : str | None ,
456- uuid : str | None , # pylint: disable=redefined-outer-name
457- mountpoints : list [Path ],
458455 btrfs_subvol_infos : list [_BtrfsSubvolumeInfo ] = []
459456 ) -> _PartitionInfo :
460457 partition_type = PartitionType .get_type_from_code (partition .type )
@@ -481,11 +478,11 @@ def from_partition(
481478 start = start ,
482479 length = length ,
483480 flags = flags ,
484- partn = partn ,
485- partuuid = partuuid ,
486- uuid = uuid ,
481+ partn = lsblk_info . partn ,
482+ partuuid = lsblk_info . partuuid ,
483+ uuid = lsblk_info . uuid ,
487484 disk = partition .disk ,
488- mountpoints = mountpoints ,
485+ mountpoints = lsblk_info . mountpoints ,
489486 btrfs_subvol_infos = btrfs_subvol_infos
490487 )
491488
You can’t perform that action at this time.
0 commit comments