diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-02-04 14:22:50 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-02-04 14:22:50 +0000 |
commit | 8f98f854325dba960ff817827c92c226ca4abbba (patch) | |
tree | 39ff2cb50c71a680a265c64db24d07f80f49476e | |
parent | 6a65f3be188d363cf62f316a4cb9cc84a0ed1544 (diff) | |
download | drakx-8f98f854325dba960ff817827c92c226ca4abbba.tar drakx-8f98f854325dba960ff817827c92c226ca4abbba.tar.gz drakx-8f98f854325dba960ff817827c92c226ca4abbba.tar.bz2 drakx-8f98f854325dba960ff817827c92c226ca4abbba.tar.xz drakx-8f98f854325dba960ff817827c92c226ca4abbba.zip |
- don't display start sector and cylinders used for LVs
- display "Number of logical extents" of LVs
-rw-r--r-- | perl-install/diskdrake/interactive.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index e9acaf4e6..88b959d1d 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -1159,12 +1159,13 @@ sub format_part_info { } else { $info .= N("Empty") . "\n"; } - $info .= N("Start: sector %s\n", $part->{start}) if $::expert && !isSpecial($part); + $info .= N("Start: sector %s\n", $part->{start}) if $::expert && !isSpecial($part) && !isLVM($hd); $info .= N("Size: %s", formatXiB($part->{size}, 512)); $info .= sprintf " (%s%%)", int 100 * $part->{size} / $hd->{totalsectors} if $hd->{totalsectors}; $info .= N(", %s sectors", $part->{size}) if $::expert; $info .= "\n"; - $info .= N("Cylinder %d to %d\n", $part->{start} / $hd->cylinder_size, ($part->{start} + $part->{size} - 1) / $hd->cylinder_size) if ($::expert || !$part->{type}) && !isSpecial($part); + $info .= N("Cylinder %d to %d\n", $part->{start} / $hd->cylinder_size, ($part->{start} + $part->{size} - 1) / $hd->cylinder_size) if ($::expert || !$part->{type}) && !isSpecial($part) && !isLVM($hd); + $info .= N("Number of logical extents: %d", $part->{size} / $hd->cylinder_size) if $::expert && isLVM($hd); $info .= N("Formatted\n") if $part->{isFormatted}; $info .= N("Not formatted\n") if !$part->{isFormatted} && $part->{notFormatted}; $info .= N("Mounted\n") if $part->{isMounted}; |