diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-04-19 18:31:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-04-19 18:31:46 +0000 |
commit | 853ec3243a697032ef5fa22613897b68877c2973 (patch) | |
tree | 67fc678897db497cd9ee18704cef38a941864814 | |
parent | 8563da1a3ac0b1f0d47266add76bebed62e4887b (diff) | |
download | drakx-853ec3243a697032ef5fa22613897b68877c2973.tar drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.gz drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.bz2 drakx-853ec3243a697032ef5fa22613897b68877c2973.tar.xz drakx-853ec3243a697032ef5fa22613897b68877c2973.zip |
(stop_inactive_mds) split it out of detect_during_install()
(needed for next commit)
-rw-r--r-- | perl-install/raid.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm index 5270d2218..8e551a888 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -191,7 +191,10 @@ sub detect_during_install { } detect_during_install_once(@parts); detect_during_install_once(@parts) if active_mds(); #- try again to detect RAID 10 + stop_inactive_mds(); +} +sub stop_inactive_mds() { foreach (inactive_mds()) { log::l("$_ is an inactive md, we stop it to ensure it doesn't busy devices"); run_program::run('mdadm', '--stop', devices::make($_)); |