summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-02 10:36:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-02 10:36:25 +0000
commitb50cb51a4ea211c29aae6e613b1cc4085ae13f6d (patch)
tree05f1334d8a48382f43a0be1604216227bde4f5a0 /perl-install/diskdrake/interactive.pm
parentfe3f296db19428d9ce70f29d192c0194a397400e (diff)
downloaddrakx-b50cb51a4ea211c29aae6e613b1cc4085ae13f6d.tar
drakx-b50cb51a4ea211c29aae6e613b1cc4085ae13f6d.tar.gz
drakx-b50cb51a4ea211c29aae6e613b1cc4085ae13f6d.tar.bz2
drakx-b50cb51a4ea211c29aae6e613b1cc4085ae13f6d.tar.xz
drakx-b50cb51a4ea211c29aae6e613b1cc4085ae13f6d.zip
- allow resizing ext3 LV if not mounted
- allow resizing reiserfs LV even if not mounted
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 87b4fe999..332e46004 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -443,7 +443,7 @@ sub part_possible_actions {
N_("Mount point") => '$part->{real_mntpoint} || (!isBusy && !isSwap && !isNonMountable)',
N_("Type") => '!isBusy && $::expert && (!readonly || $part->{pt_type} == 0x83)',
N_("Options") => '$::expert',
- N_("Resize") => '!isBusy && !readonly && !isSpecial || isLVM($hd) && isMounted && ($part->{fs_type} eq "xfs" || $part->{fs_type} eq "reiserfs")',
+ N_("Resize") => '!isBusy && !readonly && !isSpecial || isLVM($hd) && LVM_resizable',
N_("Format") => '!isBusy && !readonly && ($::expert || $::isStandalone)',
N_("Mount") => '!isBusy && (hasMntpoint || isSwap) && maybeFormatted && ($::expert || $::isStandalone)',
N_("Add to RAID") => '!isBusy && isRawRAID && (!isSpecial || isRAID)',
@@ -461,6 +461,7 @@ sub part_possible_actions {
readonly => '$hd->{readonly}',
hasMntpoint => '$part->{mntpoint}',
isPrimary => 'isPrimary($part, $hd)',
+ LVM_resizable => '$part->{fs_type} eq "reiserfs" || (isMounted ? $part->{fs_type} eq "xfs" : $part->{fs_type} eq "ext3")',
canModifyRAID => 'isPartOfRAID($part) && !isMounted(fs::get::device2part($part->{raid}, $all_hds->{raids}))',
);
if (isEmpty($part)) {