mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
device_id: fix lvmdevices update segfault
From commit 1901a47df1
"device_id: fix conditions for device_ids_refresh"
This commit is contained in:
parent
f960fe0578
commit
25a87ea16a
@ -2546,7 +2546,8 @@ void device_ids_validate(struct cmd_context *cmd, struct dm_list *scanned_devs,
|
||||
dev = du->dev;
|
||||
devname = dev_name(du->dev);
|
||||
|
||||
if (!device_list_find_dev(scanned_devs, du->dev) || (du->dev->flags & DEV_SCAN_NOT_READ)) {
|
||||
if ((scanned_devs && !device_list_find_dev(scanned_devs, du->dev)) ||
|
||||
(du->dev->flags & DEV_SCAN_NOT_READ)) {
|
||||
log_debug("Validate %s %s PVID %s on %s: not scanned",
|
||||
idtype_to_str(du->idtype), du->idname ?: ".", du->pvid ?: ".", devname);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user