summaryrefslogtreecommitdiffstats
path: root/perl-install
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
parent068a1d41c1a96b2f2c81ddaa572c4ed01b3829e9 (diff)
downloaddrakx-backup-do-not-use-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar
drakx-backup-do-not-use-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.gz
drakx-backup-do-not-use-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.bz2
drakx-backup-do-not-use-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.tar.xz
drakx-backup-do-not-use-e1f4904d5e50fc3ae3a3f3035b1981658fe7c80e.zip
after ntfs resize, warn user that on Windows next boot fsck will be done
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/interactive.pm7
-rw-r--r--perl-install/install_interactive.pm3
2 files changed, 8 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}));
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);