diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 06:43:37 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 06:43:37 +0000 |
commit | 77809191372180ed4f0e3e4d794742ef41de8092 (patch) | |
tree | 1b100831642253d677e1da142035e3d6de8ab407 /sys/arch/hp300/dev/sd.c | |
parent | f19ce193f784d60a816a97b5839aa48b447bb2c6 (diff) |
Kill COMPAT_NOLABEL. It is not appropiate in the modern world.
Diffstat (limited to 'sys/arch/hp300/dev/sd.c')
-rw-r--r-- | sys/arch/hp300/dev/sd.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/sys/arch/hp300/dev/sd.c b/sys/arch/hp300/dev/sd.c index d848472cfd2..1ce13bda0d5 100644 --- a/sys/arch/hp300/dev/sd.c +++ b/sys/arch/hp300/dev/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.8 1997/02/10 01:33:57 downsj Exp $ */ +/* $OpenBSD: sd.c,v 1.9 1997/02/10 06:43:34 downsj Exp $ */ /* $NetBSD: sd.c,v 1.29 1997/01/30 09:14:20 thorpej Exp $ */ /* @@ -380,15 +380,6 @@ sdgetinfo(dev) register struct disklabel *lp = sc->sc_dkdev.dk_label; register struct partition *pi; char *msg, *readdisklabel(); -#ifdef COMPAT_NOLABEL - int usedefault = 1; - - /* - * For CD-ROM just define a single partition - */ - if (sc->sc_type == 5) - usedefault = 0; -#endif bzero((caddr_t)lp, sizeof *lp); msg = NULL; @@ -415,9 +406,6 @@ sdgetinfo(dev) */ sc->sc_flags |= SDF_ERROR; msg = "unformatted/missing media"; -#ifdef COMPAT_NOLABEL - usedefault = 0; -#endif break; } } @@ -447,15 +435,8 @@ sdgetinfo(dev) } pi = lp->d_partitions; - printf("%s: WARNING: %s, ", sc->sc_dev.dv_xname, msg); -#ifdef COMPAT_NOLABEL - if (usedefault) { - printf("using old default partitioning\n"); - sdmakedisklabel(unit, lp); - return(0); - } -#endif - printf("defining `c' partition as entire disk\n"); + printf("%s: WARNING: %s, defining `c' partition as entire disk\n", + sc->sc_dev.dv_xname, msg); pi[2].p_size = sc->sc_blks; /* XXX reset other info since readdisklabel screws with it */ lp->d_npartitions = 3; |