ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/pbcdedit/pbcdedit
(Generate patch)

Comparing pbcdedit/pbcdedit (file contents):
Revision 1.1 by root, Wed Aug 14 20:38:16 2019 UTC vs.
Revision 1.2 by root, Wed Aug 14 20:56:50 2019 UTC

1554 1554
1555 $path 1555 $path
1556 }; 1556 };
1557 1557
1558 if ($type eq "partition" or $type eq "legacypartition") { 1558 if ($type eq "partition" or $type eq "legacypartition") {
1559 $type eq "legacypartition"
1560 and die "legacypartition decocde support missing\n"; # different structure layout?
1561
1562 my $partdata = substr $device, 0, 16, ""; 1559 my $partdata = substr $device, 0, 16, "";
1563 my ($blocktype, $parttype) = unpack "VV", substr $device, 0, 4 * 2, ""; 1560 my ($blocktype, $parttype) = unpack "VV", substr $device, 0, 4 * 2, "";
1564 1561
1565 $blocktype = $block_type[$blocktype] // die "unknown block device type '$blocktype'\n"; 1562 $blocktype = $block_type[$blocktype] // die "unknown block device type '$blocktype'\n";
1566 $parttype = $part_type[$parttype] // die "unknown partition type\n"; 1563 $parttype = $part_type[$parttype] // die "unknown partition type\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines