1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

toollib: Report errors on non-PV arguments to process_each_label.

This commit is contained in:
Petr Rockai 2013-08-21 01:32:51 +02:00
parent 67c563ac2b
commit d5095222fa

View File

@ -1821,8 +1821,12 @@ int process_each_label(struct cmd_context *cmd, int argc, char **argv, void *han
continue; 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; continue;
}
ret = process_single_label(cmd, label, handle); ret = process_single_label(cmd, label, handle);