mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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,8 +416,9 @@ 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",
|
||||
(int) (we - ws), ws);
|
||||
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