From e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 26 Feb 2003 00:27:18 +0000 Subject: after ntfs resize, warn user that on Windows next boot fsck will be done --- perl-install/diskdrake/interactive.pm | 7 +++++-- perl-install/install_interactive.pm | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'perl-install') 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})); diff --git a/perl-install/install_interactive.pm b/perl-install/install_interactive.pm index 2ef9f73d8..674fa7ded 100644 --- a/perl-install/install_interactive.pm +++ b/perl-install/install_interactive.pm @@ -189,6 +189,9 @@ When sure, press Ok.")) or return; die \N("FAT resizing failed: %s", formatError($err)); } + $o->ask_warn('', N("To ensure data integrity after resizing the partition(s), +filesystem checks will be run on your next boot into Windows(TM)")) if !isFat($part); + $part->{isFormatted} = 1; $hd->{isDirty} = $hd->{needKernelReread} = 1; partition_table::adjust_local_extended($hd, $part); -- cgit v1.2.1