summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-04 21:13:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-04 21:13:04 +0000
commit493210897221d7a7520ed88494339623a8d0cbb9 (patch)
tree437b23c9f66b7621e795b1a7278f3e5786b0ff8a /lib/libc
parentfeadbccc8166eb1acafe6168fece9b1756dfb533 (diff)
Recycle four ancient fields in the disklabel structure, replacing them with
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/disklabel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index 539e422ebd1..402665c8f70 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -97,10 +97,6 @@ getdiskbyname(const char *name)
getnumdflt(dp->d_secperunit, "su", dp->d_secpercyl * dp->d_ncylinders);
getnumdflt(dp->d_rpm, "rm", 3600);
getnumdflt(dp->d_interleave, "il", 1);
- getnumdflt(dp->d_trackskew, "sk", 0);
- getnumdflt(dp->d_cylskew, "cs", 0);
- getnumdflt(dp->d_headswitch, "hs", 0);
- getnumdflt(dp->d_trkseek, "ts", 0);
getnumdflt(dp->d_bbsize, "bs", BBSIZE);
getnumdflt(dp->d_sbsize, "sb", SBSIZE);
strlcpy(psize, "px", sizeof psize);