summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-26 00:27:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-26 00:27:18 +0000
commite1f4904d5e50fc3ae3a3f3035b1981658fe7c80e (patch)
tree0d890a5931089e37f4c01097d09fa1c401a3f990 /perl-install/diskdrake
parent068a1d41c1a96b2f2c81ddaa572c4ed01b3829e9 (diff)
downloaddrakx-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar
drakx-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.gz
drakx-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.bz2
drakx-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.xz
drakx-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.zip
after ntfs resize, warn user that on Windows next boot fsck will be done
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 9a320c0c6..896a826dd 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -706,7 +706,7 @@ sub Resize {
undef $@;
my $_b = before_leaving { $@ and $part->{size} = $oldsize };
- my $w = $in->wait_message(N("Resizing"), '');
+ my $wait = $in->wait_message(N("Resizing"), '');
my $adjust = sub {
my ($write_partitions) = @_;
@@ -724,7 +724,7 @@ sub Resize {
$adjust->(1) or return if $size > $oldsize;
if ($nice_resize{fat}) {
- local *log::l = sub { $w->set(join(' ', @_)) };
+ local *log::l = sub { $wait->set(join(' ', @_)) };
$nice_resize{fat}->resize($part->{size});
} elsif ($nice_resize{ext2}) {
my $s = int($part->{size} / ($block_size / 512));
@@ -733,6 +733,9 @@ sub Resize {
} elsif ($nice_resize{ntfs}) {
log::l("ntfs resize to $part->{size} sectors");
$nice_resize{ntfs}->resize($part->{size});
+ $wait = undef;
+ $in->ask_warn('', N("To ensure data integrity after resizing the partition(s),
+filesystem checks will be run on your next boot into Windows(TM)"));
} elsif ($nice_resize{reiserfs}) {
log::l("reiser resize to $part->{size} sectors");
run_program::run('resize_reiserfs', '-f', '-q', '-s' . int($part->{size}/2) . 'K', devices::make($part->{device}));