When pvscan is run for the initialization case (the first
pvscan run on the system), it scans all devs and creates
online files for all PVs it finds. Previously it would
then autoactivate every complete VG, but change this to
only autoactive the (complete) VG corresponding to the
named device arg(s).
if (_online_pvid_files_missing()) {
log_verbose("pvscan all devices to initialize available PVs.");
- _online_files_remove(_pvs_online_dir);
- _online_files_remove(_vgs_online_dir);
- _online_pvscan_all_devs(cmd, complete_vgnames, NULL);
+ _online_pvscan_all_devs(cmd, complete_vgnames, &add_devs);
_unlock_online();
goto activate;
}