master - pvscan: fix autoactivation of exported VG
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=68e7d3496517a70e50edaceff906ad1da23821a6 Commit: 68e7d3496517a70e50edaceff906ad1da23821a6 Parent: 4585785613320f2400b5645a47375308f1ee5289 Author: David Teigland <[email protected]> AuthorDate: Wed Nov 2 16:29:52 2016 -0500 Committer: David Teigland <[email protected]> CommitterDate: Wed Nov 2 16:29:52 2016 -0500
pvscan: fix autoactivation of exported VG
pvscan --cache -aay was activating LVs in exported VGs when it should not.
It appears that this was a regression from commit 9b640c36841 "pvscan: use process_each_vg for autoactivate".
--- tools/pvscan.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
tools/pvscan.c +3 -0
@@ -194,6 +194,9 @@ static int _pvscan_autoactivate_single(struct cmd_context *cmd, const char *vg_nif (vg_is_clustered (vg))return ECMD_PROCESSED ; +if (vg_is_exported (vg)) +return ECMD_PROCESSED ; +if (is_lockd_type (vg->lock_type))return ECMD_PROCESSED ;