From 87f2e8cf32914530d089b75b00366bd95aafb1df Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 11 Mar 2002 10:23:10 +0000 Subject: (Mount_point): when files exist in the chosen mount point, propose migration --- perl-install/diskdrake/interactive.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'perl-install') diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index b109474e6..ab8cb0e22 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -521,6 +521,7 @@ sub Type { sub Mount_point { my ($in, $hd, $part, $all_hds) = @_; + my $migrate_files; my $mntpoint = $part->{mntpoint} || do { my $part_ = { %$part }; if (fsedit::suggest_part($part_, $all_hds)) { @@ -539,10 +540,17 @@ sub Mount_point { _("Can't unset mount point as this partition is used for loop back. Remove the loopback first")), return 1; $part->{mntpoint} eq $mntpoint || check_mntpoint($in, $mntpoint, $hd, $part, $all_hds) or return 1; + $migrate_files = need_migration($in, $mntpoint) or return 1; 0; } ) or return; $part->{mntpoint} = $mntpoint; + + if ($migrate_files eq 'migrate') { + format_($in, $hd, $part, $all_hds) or return; + migrate_files($in, $hd, $part); + fs::mount_part($part); + } } sub Mount_point_raw_hd { my ($in, $part, $all_hds, $propositions) = @_; -- cgit v1.2.1