mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-07 04:58:47 +03:00
toollib: Report errors on non-PV arguments to process_each_label.
This commit is contained in:
parent
67c563ac2b
commit
d5095222fa
@ -1821,8 +1821,12 @@ int process_each_label(struct cmd_context *cmd, int argc, char **argv, void *han
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!label_read(dev, &label, 0))
|
||||
if (!label_read(dev, &label, 0)) {
|
||||
log_error("No physical volume label read from %s",
|
||||
argv[opt]);
|
||||
ret_max = ECMD_FAILED;
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = process_single_label(cmd, label, handle);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user