diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-04 16:57:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-04 16:57:17 +0000 |
commit | cc396a135cd0c48a12e330c4dfca8a539655ba12 (patch) | |
tree | 2c3cf66812a4f6f8a8c55357288709b68dc1134d /sys | |
parent | c51cbf844517cff95293bf35457f631d94c3c43c (diff) |
Kill non-working ultrix-style controller/disk/kernel format and leave
working disk(controller, scsiid, partitionnum)kernel format.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/stand/boot/devopen.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/sys/arch/alpha/stand/boot/devopen.c b/sys/arch/alpha/stand/boot/devopen.c index 7bff235c727..cc99b555520 100644 --- a/sys/arch/alpha/stand/boot/devopen.c +++ b/sys/arch/alpha/stand/boot/devopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devopen.c,v 1.6 1997/10/27 16:09:53 millert Exp $ */ +/* $OpenBSD: devopen.c,v 1.7 1998/09/04 16:57:16 millert Exp $ */ /* $NetBSD: devopen.c,v 1.1 1995/11/23 02:39:37 cgd Exp $ */ /*- @@ -61,36 +61,8 @@ devopen(f, fname, file) cp = (char *)fname; ncp = namebuf; - /* look for a string like '5/rz0/vmunix' or '5/rz3f/vmunix */ - if ((c = *cp) >= '0' && c <= '9') { - ctlr = c - '0'; - /* skip the '/' */ - if (*++cp != '/') - goto defdev; - cp++; - while ((c = *cp) != '\0') { - if (c == '/') - break; - if (c >= '0' && c <= '9') { - /* read unit number */ - unit = c - '0'; - - /* look for a partition */ - if ((c = *++cp) >= 'a' && c <= 'h') { - part = c - 'a'; - c = *++cp; - } - if (c != '/') - goto defdev; - break; - } - if (ncp < namebuf + sizeof(namebuf) - 1) - *ncp++ = c; - cp++; - } - *ncp = '\0'; - } else if (strchr(cp, '(')) { - /* expect a string like 'rz(0,0,0)vmunix' */ + /* look for a string like 'disk(0,0,0)bsd' */ + if (strchr(cp, '(')) { while ((c = *cp) != '\0') { if (c == '(') { cp++; |