diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-09-24 19:49:39 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2015-09-24 19:49:39 +0000 |
commit | 35b119c08c8ec1b2ee5b81dc902a86a659d26a2f (patch) | |
tree | 4761bd6f0ac33c20d7db0ca2e43d77f87e0a68c1 | |
parent | e72e894eaa16f83b529a5bc8ff0641847d4b1f37 (diff) |
Expunge VAX SMD special handling that tried to fill up the last
cylinder of the disk with extra copies of the boot blocks and
disklabel. There are no plans to ever support the native SMD
controllers that would find this useful.
ok miod@
-rw-r--r-- | sbin/disklabel/disklabel.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 447126d5c3b..7e528f3656d 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.205 2015/09/09 13:51:55 krw Exp $ */ +/* $OpenBSD: disklabel.c,v 1.206 2015/09/24 19:49:38 krw Exp $ */ /* * Copyright (c) 1987, 1993 @@ -400,20 +400,7 @@ writelabel(int f, char *boot, struct disklabel *lp) return (1); } } -#ifdef __vax__ - if (lp->d_type == DTYPE_SMD && lp->d_flags & D_BADSECT) { - off_t alt; - int i; - - alt = lp->d_ncylinders * lp->d_secpercyl - lp->d_nsectors; - for (i = 1; i < 11 && i < lp->d_nsectors; i += 2) { - (void)lseek(f, (alt + i) * lp->d_secsize, SEEK_SET); - if (!donothing) - if (write(f, boot, lp->d_secsize) != lp->d_secsize) - warn("alternate label %d write", i/2); - } - } -#endif + /* Finally, write out any mount point information. */ if (!donothing) { /* First refresh our copy of the current label to get UID. */ |