diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-12 19:35:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-12 19:35:56 +0000 |
commit | 17a4f3d67c8d98805c038f3403bba8182540c262 (patch) | |
tree | 53c2c318eb24e9438b8c641bdb5625cfd151e695 | |
parent | f271eb310012e15f42842c715294f3b6d277d2d4 (diff) |
Treat IDE as ESDI in -e mode just like we do in -E mode.
-rw-r--r-- | sbin/disklabel/disklabel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 5beebbfd4aa..176d9fd34e0 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.49 1998/02/20 01:55:29 deraadt Exp $ */ +/* $OpenBSD: disklabel.c,v 1.50 1998/03/12 19:35:55 millert Exp $ */ /* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char rcsid[] = "$OpenBSD: disklabel.c,v 1.49 1998/02/20 01:55:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: disklabel.c,v 1.50 1998/03/12 19:35:55 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -1271,9 +1271,11 @@ getasciilabel(f, lp) if (!strcmp(cp, "type")) { if (tp == NULL) tp = "unknown"; + else if (strcasecmp(tp, "IDE") == 0) + tp = "ESDI"; cpp = dktypenames; for (; cpp < &dktypenames[DKMAXTYPES]; cpp++) - if ((s = *cpp) && !strcmp(s, tp)) { + if ((s = *cpp) && !strcasecmp(s, tp)) { lp->d_type = cpp - dktypenames; goto next; } |