From df986ee73cb5d5b6a91f938b4351698ea359f29f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 24 Oct 2001 12:16:33 +0000 Subject: add methods first_usable_sector and last_usable_sector --- perl-install/partition_table_raw.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/partition_table_raw.pm') diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index f11fd7068..5dfc82e74 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -47,6 +47,11 @@ sub cylinder_size($) { my ($hd) = @_; $hd->{geom}{sectors} * $hd->{geom}{heads}; } +sub first_usable_sector { 1 } +sub last_usable_sector { + my ($hd) = @_; + $hd->{totalsectors}; +} #- default method for starting a partition, only head size or twice #- is allowed for starting a partition after a cylinder boundarie. -- cgit v1.2.1