summaryrefslogtreecommitdiffstats
path: root/sys/sys/disklabel.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-03 08:51:22 +0000
committerphk <phk@FreeBSD.org>2003-04-03 08:51:22 +0000
commita7c38434d26b2ac4e10d8be611cde12089261fe8 (patch)
tree02311ec5e324fc5cf3b46a8cfa1c7d55b66d072c /sys/sys/disklabel.h
parent97afb95c0122c76a184b518f642c1d2f9a8d5930 (diff)
downloadFreeBSD-src-a7c38434d26b2ac4e10d8be611cde12089261fe8.zip
FreeBSD-src-a7c38434d26b2ac4e10d8be611cde12089261fe8.tar.gz
NO_GEOM cleanup: Remove dkmakeminor().
Diffstat (limited to 'sys/sys/disklabel.h')
-rw-r--r--sys/sys/disklabel.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index 1c22dfb..8b49817 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -300,38 +300,6 @@ static const char *fstypenames[] = {
#define DIOCWDINFO _IOW('d', 103, struct disklabel)/* set, update disk */
#define DIOCBSDBB _IOW('d', 110, void *) /* write bootblocks */
-#ifdef _KERNEL
-
-/*
- * XXX encoding of disk minor numbers, should be elsewhere.
- *
- * See <sys/reboot.h> for a possibly better encoding.
- *
- * "cpio -H newc" can be used to back up device files with large minor
- * numbers (but not ones >= 2^31). Old cpio formats and all tar formats
- * don't have enough bits, and cpio and tar don't notice the lossage.
- * There are also some sign extension bugs.
- */
-
-/*
- 3 2 1 0
- 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
- _________________________________________________________________
- | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
- -----------------------------------------------------------------
- | SPARE |UNIT_2 | SLICE | MAJOR? | UNIT |PART |
- -----------------------------------------------------------------
-*/
-
-#define DKMAXUNIT 0x1ff
-
-#define dkmakeminor(unit, slice, part) \
- (((slice) << 16) | (((unit) & 0x1e0) << 16) | \
- (((unit) & 0x1f) << 3) | (part))
-
-#endif /* _KERNEL */
-
-
#ifndef _KERNEL
__BEGIN_DECLS
struct disklabel *getdiskbyname(const char *);
OpenPOWER on IntegriCloud