mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
pvscan: check for exported vg
earlier when creating online files so that it's ignored for --cache --listvg
This commit is contained in:
parent
6666c7b2ff
commit
46ecca37f9
@ -1362,6 +1362,12 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
|
||||
continue;
|
||||
}
|
||||
|
||||
if (vg_is_exported(vg)) {
|
||||
log_print_pvscan(cmd, "PV %s ignore exported VG.", dev_name(dev));
|
||||
release_vg(vg);
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* online file phase
|
||||
* create pvs_online/<pvid>
|
||||
|
Loading…
x
Reference in New Issue
Block a user