mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
report which dev was not found
This commit is contained in:
parent
a6fc6250e0
commit
c837830f6a
@ -559,10 +559,19 @@ static struct dm_task *_get_device_info(const struct dm_event_handler *dmevh)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!info.exists) {
|
if (!info.exists) {
|
||||||
log_error("_get_device_info: device not found");
|
log_error("_get_device_info: %s%s%s%.0d%s%.0d%s%s: device not found",
|
||||||
|
dmevh->uuid ? : "",
|
||||||
|
(!dmevh->uuid && dmevh->dev_name) ? dmevh->dev_name : "",
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? "(" : "",
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? dmevh->major : 0,
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? ":" : "",
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->minor > 0) ? dmevh->minor : 0,
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) && dmevh->minor == 0 ? "0" : "",
|
||||||
|
(!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? ") " : "");
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return dmt;
|
return dmt;
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user