1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-06 11:33:14 +03:00

pvs: replace 'unknown device' with [unknown]

A config setting can restore the old string.
This commit is contained in:
David Teigland
2016-02-29 13:38:31 -06:00
parent afae3355f8
commit 57cd94b9e3
6 changed files with 23 additions and 1 deletions

View File

@@ -1108,5 +1108,5 @@ int dev_fd(struct device *dev)
const char *dev_name(const struct device *dev)
{
return (dev && dev->aliases.n) ? dm_list_item(dev->aliases.n, struct dm_str_list)->str :
"unknown device";
unknown_device_name();
}