From 44dd26d43a0ace489d2e9c2126c1792cf4fd54db Mon Sep 17 00:00:00 2001 From: julian Date: Sun, 30 Apr 1995 23:48:27 +0000 Subject: making a reservation for more bits before people start using them in the minor number, (this stuff HAS to go!) The change I want is: /* 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 _________________________________________________________________ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------------------------------------------- | TYPE | SLICE | MAJOR? | UNIT |PART | <-now ----------------------------------------------------------------- | TYPE |PART2| SLICE | MAJOR? | UNIT |PART | <-soon ----------------------------------------------------------------- I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE) */ --- sys/sys/disklabel.h | 16 +++++++++++++++- sys/sys/diskmbr.h | 16 +++++++++++++++- sys/sys/diskpc98.h | 16 +++++++++++++++- 3 files changed, 45 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 5452b44..d49fd45 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.1 (Berkeley) 6/2/93 - * $Id: disklabel.h,v 1.11 1995/03/16 18:16:14 bde Exp $ + * $Id: disklabel.h,v 1.12 1995/04/15 22:46:28 bde Exp $ */ #ifndef _SYS_DISKLABEL_H_ @@ -392,6 +392,20 @@ extern struct dos_partition dos_partitions[NDOSPART]; * 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 + _________________________________________________________________ + | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + ----------------------------------------------------------------- + | TYPE | SLICE | MAJOR? | UNIT |PART | + ----------------------------------------------------------------- + | TYPE |PART2| SLICE | MAJOR? | UNIT |PART | <-soon + ----------------------------------------------------------------- + + I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE) +*/ #define dkmakeminor(unit, slice, part) \ (((slice) << 16) | ((unit) << 3) | (part)) #define dkminor(unit, part) dkmakeminor((unit), 0, (part)) diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h index 5452b44..d49fd45 100644 --- a/sys/sys/diskmbr.h +++ b/sys/sys/diskmbr.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.1 (Berkeley) 6/2/93 - * $Id: disklabel.h,v 1.11 1995/03/16 18:16:14 bde Exp $ + * $Id: disklabel.h,v 1.12 1995/04/15 22:46:28 bde Exp $ */ #ifndef _SYS_DISKLABEL_H_ @@ -392,6 +392,20 @@ extern struct dos_partition dos_partitions[NDOSPART]; * 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 + _________________________________________________________________ + | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + ----------------------------------------------------------------- + | TYPE | SLICE | MAJOR? | UNIT |PART | + ----------------------------------------------------------------- + | TYPE |PART2| SLICE | MAJOR? | UNIT |PART | <-soon + ----------------------------------------------------------------- + + I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE) +*/ #define dkmakeminor(unit, slice, part) \ (((slice) << 16) | ((unit) << 3) | (part)) #define dkminor(unit, part) dkmakeminor((unit), 0, (part)) diff --git a/sys/sys/diskpc98.h b/sys/sys/diskpc98.h index 5452b44..d49fd45 100644 --- a/sys/sys/diskpc98.h +++ b/sys/sys/diskpc98.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)disklabel.h 8.1 (Berkeley) 6/2/93 - * $Id: disklabel.h,v 1.11 1995/03/16 18:16:14 bde Exp $ + * $Id: disklabel.h,v 1.12 1995/04/15 22:46:28 bde Exp $ */ #ifndef _SYS_DISKLABEL_H_ @@ -392,6 +392,20 @@ extern struct dos_partition dos_partitions[NDOSPART]; * 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 + _________________________________________________________________ + | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + ----------------------------------------------------------------- + | TYPE | SLICE | MAJOR? | UNIT |PART | + ----------------------------------------------------------------- + | TYPE |PART2| SLICE | MAJOR? | UNIT |PART | <-soon + ----------------------------------------------------------------- + + I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE) +*/ #define dkmakeminor(unit, slice, part) \ (((slice) << 16) | ((unit) << 3) | (part)) #define dkminor(unit, part) dkmakeminor((unit), 0, (part)) -- cgit v1.1