mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
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".
This commit is contained in:
parent
4585785613
commit
68e7d34965
@ -194,6 +194,9 @@ static int _pvscan_autoactivate_single(struct cmd_context *cmd, const char *vg_n
|
||||
if (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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user