1
0
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:
Alasdair Kergon 2007-01-18 22:15:04 +00:00
parent 122337ba0d
commit 09e206d393
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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;
}