diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-21 16:52:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-21 16:52:43 +0000 |
commit | b4246d86375adb606407994a2a4980a423186d0d (patch) | |
tree | a97097810c13f36acd02cabab47f8bdeba3551dc /perl-install | |
parent | 61a74ac6e678b40f43e748dbe631a1fe2cc9480d (diff) | |
download | drakx-b4246d86375adb606407994a2a4980a423186d0d.tar drakx-b4246d86375adb606407994a2a4980a423186d0d.tar.gz drakx-b4246d86375adb606407994a2a4980a423186d0d.tar.bz2 drakx-b4246d86375adb606407994a2a4980a423186d0d.tar.xz drakx-b4246d86375adb606407994a2a4980a423186d0d.zip |
display the error returned by ntfsresize (need i18n though)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/diskdrake/resize_ntfs.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/diskdrake/resize_ntfs.pm b/perl-install/diskdrake/resize_ntfs.pm index 64d96ca7f..6ffe146f9 100644 --- a/perl-install/diskdrake/resize_ntfs.pm +++ b/perl-install/diskdrake/resize_ntfs.pm @@ -14,15 +14,17 @@ sub new { sub min_size { my ($o) = @_; - my $r = run_program::get_stdout('ntfsresize', '-f', '-i', $o->{dev}); + my $r; + run_program::run('ntfsresize', '>', \$r, '-f', '-i', $o->{dev}) or die "ntfsresize failed:\n$r\n"; $r =~ /minimal size: (\d+) KiB/ && $1 * 2 } sub resize { my ($o, $size) = @_; my @l = ('-ff', '-s' . int($size / 2) . 'ki', $o->{dev}); - run_program::run_or_die('ntfsresize', '-n', @l); - run_program::run_or_die('ntfsresize', @l); + my $r; + run_program::run('ntfsresize', '>', \$r, '-n', @l) or die "ntfsresize failed: $r\n"; + run_program::run('ntfsresize', '>', \$r, @l) or die "ntfsresize failed: $r\n"; } 1; |