mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
o check for orphaned pv's when reading
This commit is contained in:
parent
88835ab641
commit
4d468cffcd
@ -240,6 +240,12 @@ struct disk_list *read_pv(struct device *dev, struct pool *mem,
|
||||
goto bad;
|
||||
}
|
||||
|
||||
/*
|
||||
* is it an orphan ?
|
||||
*/
|
||||
if (data->pv.vg_name == '\0')
|
||||
return 1;
|
||||
|
||||
if (vg_name && strcmp(vg_name, data->pv.vg_name)) {
|
||||
log_info("%s is not a member of the vg '%s'",
|
||||
dev->name, vg_name);
|
||||
|
Loading…
Reference in New Issue
Block a user