From 9f88fdfb88cd6e354ef21142e45c36157f63d51b Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 3 Apr 2003 08:51:22 +0000 Subject: [PATCH] NO_GEOM cleanup: Remove dkmakeminor(). --- sys/sys/disklabel.h | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 1c22dfb5dfb..8b4981750a8 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 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 *);