1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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)
*/
This commit is contained in:
Julian Elischer 1995-04-30 23:48:27 +00:00
parent 87d4886cc3
commit 6f76a2ca2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8193
3 changed files with 45 additions and 3 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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))