diff options
author | julian <julian@FreeBSD.org> | 1995-04-30 23:48:27 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-04-30 23:48:27 +0000 |
commit | 44dd26d43a0ace489d2e9c2126c1792cf4fd54db (patch) | |
tree | c8b93bb0ce691fb565b3245306a72d08ac0c23bc /sys | |
parent | 0ffc27529d2c7ca6ee9effc3d7b9992202957586 (diff) | |
download | FreeBSD-src-44dd26d43a0ace489d2e9c2126c1792cf4fd54db.zip FreeBSD-src-44dd26d43a0ace489d2e9c2126c1792cf4fd54db.tar.gz |
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)
*/
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/disklabel.h | 16 | ||||
-rw-r--r-- | sys/sys/diskmbr.h | 16 | ||||
-rw-r--r-- | sys/sys/diskpc98.h | 16 |
3 files changed, 45 insertions, 3 deletions
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)) |