master - improve message for invalid device arg
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=74ed6e8a9969bb7d20c21f88b53e6134d81eab1d Commit: 74ed6e8a9969bb7d20c21f88b53e6134d81eab1d Parent: 450f272b31ef95bd7cb61812d9ef0525c7c1c341 Author: David Teigland <[email protected]> AuthorDate: Thu Oct 1 12:19:27 2020 -0500 Committer: David Teigland <[email protected]> CommitterDate: Thu Oct 1 12:20:16 2020 -0500
improve message for invalid device arg
for pvcreate, pvremove, vgcreate, vgextend.
--- tools/toollib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/toollib.c +1 -1
@@ -5248,7 +5248,7 @@ int pvcreate_each_device(struct cmd_context *cmd, dm_list_iterate_items_safe(pd, pd2, &pp->arg_devices) { pd->dev =dev_cache_get (cmd, pd->name, cmd->filter);if (!pd->dev) { -log_error ("Device %s not found." , pd->name); +log_error ("Cannot use %s: %s" , pd->name,devname_error_reason (pd->name));dm_list_del (&pd->list);dm_list_add (&pp->arg_fail, &pd->list); }