mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: check fid instance is created
This commit is contained in:
parent
e1840dd9e0
commit
f410035181
@ -1234,7 +1234,12 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
|
||||
}
|
||||
|
||||
fmt = lvmcache_fmt(info);
|
||||
fid = fmt->ops->create_instance(fmt, &fic);
|
||||
if (!(fid = fmt->ops->create_instance(fmt, &fic))) {
|
||||
log_error("pvscan[%d] failed to create format instance.", getpid());
|
||||
ret = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
vg = NULL;
|
||||
|
||||
mda1 = lvmcache_get_dev_mda(dev, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user