diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-24 12:16:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-24 12:16:33 +0000 |
commit | df986ee73cb5d5b6a91f938b4351698ea359f29f (patch) | |
tree | 36313924e4eb63e04514be164f12bf3204fdcb8d /perl-install/partition_table_raw.pm | |
parent | 0ccc4da1a3bb759bd4333e92efb4a72366b5cb00 (diff) | |
download | drakx-backup-do-not-use-df986ee73cb5d5b6a91f938b4351698ea359f29f.tar drakx-backup-do-not-use-df986ee73cb5d5b6a91f938b4351698ea359f29f.tar.gz drakx-backup-do-not-use-df986ee73cb5d5b6a91f938b4351698ea359f29f.tar.bz2 drakx-backup-do-not-use-df986ee73cb5d5b6a91f938b4351698ea359f29f.tar.xz drakx-backup-do-not-use-df986ee73cb5d5b6a91f938b4351698ea359f29f.zip |
add methods first_usable_sector and last_usable_sector
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r-- | perl-install/partition_table_raw.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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. |