1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvm-string: Fix HYPEN typo.

This commit is contained in:
Alasdair G Kergon 2015-02-23 17:09:35 +00:00
parent 4847836310
commit fcebf27a9f
3 changed files with 3 additions and 3 deletions

View File

@ -855,7 +855,7 @@ void display_name_error(name_error_t name_error)
case NAME_INVALID_EMPTY:
log_error("Name is zero length.");
break;
case NAME_INVALID_HYPEN:
case NAME_INVALID_HYPHEN:
log_error("Name cannot start with hyphen.");
break;
case NAME_INVALID_DOTS:

View File

@ -75,7 +75,7 @@ static name_error_t _validate_name(const char *n)
/* Hyphen used as VG-LV separator - ambiguity if LV starts with it */
if (*n == '-')
return NAME_INVALID_HYPEN;
return NAME_INVALID_HYPHEN;
if ((*n == '.') && (!n[1] || (n[1] == '.' && !n[2]))) /* ".", ".." */
return NAME_INVALID_DOTS;

View File

@ -28,7 +28,7 @@ struct logical_volume;
typedef enum name_error {
NAME_VALID = 0,
NAME_INVALID_EMPTY = -1,
NAME_INVALID_HYPEN = -2,
NAME_INVALID_HYPHEN = -2,
NAME_INVALID_DOTS = -3,
NAME_INVALID_CHARSET = -4,
NAME_INVALID_LENGTH = -5