diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-04 21:13:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-04 21:13:04 +0000 |
commit | 493210897221d7a7520ed88494339623a8d0cbb9 (patch) | |
tree | 437b23c9f66b7621e795b1a7278f3e5786b0ff8a /sbin/disklabel/extern.h | |
parent | feadbccc8166eb1acafe6168fece9b1756dfb533 (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 'sbin/disklabel/extern.h')
-rw-r--r-- | sbin/disklabel/extern.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h index ea86a4c0a39..75397700e38 100644 --- a/sbin/disklabel/extern.h +++ b/sbin/disklabel/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.16 2009/06/02 16:23:45 krw Exp $ */ +/* $OpenBSD: extern.h,v 1.17 2009/06/04 21:13:03 deraadt Exp $ */ /* * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org> @@ -37,11 +37,3 @@ extern int aflag, dflag; extern int donothing; extern int verbose; extern char print_unit; - -#ifdef DOSLABEL -extern struct dos_partition *dosdp; /* DOS partition, if found */ -#endif -#ifdef DPMELABEL -extern int dpme_label; /* nonzero if DPME table */ -extern uint32_t dpme_obsd_start, dpme_obsd_size; /* OpenBSD DPME boundaries */ -#endif |