mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-29 15:22:30 +03:00
Suppress 'Unrecognised field' error if report field is 'help'.
This commit is contained in:
parent
122337ba0d
commit
09e206d393
@ -1,5 +1,6 @@
|
||||
Version 1.02.16 -
|
||||
===================================
|
||||
Suppress 'Unrecognised field' error if report field is 'help'.
|
||||
Add --separator and --sort to dmsetup (unused).
|
||||
Make alignment flag optional when specifying report fields.
|
||||
|
||||
|
@ -416,7 +416,8 @@ static int _parse_options(struct dm_report *rh, const char *format)
|
||||
if (!_field_match(rh, ws, (size_t) (we - ws))) {
|
||||
_display_fields(rh);
|
||||
log_print(" ");
|
||||
log_error("dm_report: Unrecognised field: %.*s",
|
||||
if (strcasecmp(ws, "help") && strcmp(ws, "?"))
|
||||
log_error("Unrecognised field: %.*s",
|
||||
(int) (we - ws), ws);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user