ReactOS  0.4.13-dev-698-g77671f0
disklabel.h File Reference
#include "type.h"
#include "bootblock.h"
Include dependency graph for disklabel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  disklabel
 
struct  disklabel::partition
 
struct  olddisklabel
 
struct  olddisklabel::opartition
 
struct  format_op
 
struct  partinfo
 

Macros

#define __HAVE_OLD_DISKLABEL
 
#define LABELSECTOR   1 /* sector containing label */
 
#define LABELOFFSET   0 /* offset of label in sector */
 
#define MAXPARTITIONS   16 /* number of partitions */
 
#define OLDMAXPARTITIONS   8 /* number of partitions before 1.6 */
 
#define RAW_PART   3 /* raw partition: XX?d (XXX) */
 
#define __I386_MAXDISKS   ((1 << 20) / MAXPARTITIONS)
 
#define DISKUNIT(dev)   ((minor(dev) / OLDMAXPARTITIONS) % __I386_MAXDISKS)
 
#define DISKPART(dev)
 
#define DISKMINOR(unit, part)
 
#define MAXMAXPARTITIONS   22
 
#define MAKEDISKDEV(maj, unit, part)   (makedev((maj), DISKMINOR((unit), (part))))
 
#define DISKMAGIC   ((u_int32_t)0x82564557) /* The disk magic number */
 
#define d_packname   d_un.un_d_packname
 
#define d_boot0   d_un.un_b.un_d_boot0
 
#define d_boot1   d_un.un_b.un_d_boot1
 
#define NDDATA   5
 
#define NSPARE   5
 
#define p_fsize   __partition_u2.fsize
 
#define p_cdsession   __partition_u2.cdsession
 
#define p_cpg   __partition_u1.cpg
 
#define p_sgs   __partition_u1.sgs
 
#define DTYPE_SMD   1 /* SMD, XSMD; VAX hp/up */
 
#define DTYPE_MSCP   2 /* MSCP */
 
#define DTYPE_DEC   3 /* other DEC (rk, rl) */
 
#define DTYPE_SCSI   4 /* SCSI */
 
#define DTYPE_ESDI   5 /* ESDI interface */
 
#define DTYPE_ST506   6 /* ST506 etc. */
 
#define DTYPE_HPIB   7 /* CS/80 on HP-IB */
 
#define DTYPE_HPFL   8 /* HP Fiber-link */
 
#define DTYPE_FLOPPY   10 /* floppy */
 
#define DTYPE_CCD   11 /* concatenated disk device */
 
#define DTYPE_VND   12 /* vnode pseudo-disk */
 
#define DTYPE_ATAPI   13 /* ATAPI */
 
#define DTYPE_RAID   14 /* RAIDframe */
 
#define DTYPE_LD   15 /* logical disk */
 
#define DTYPE_JFS2   16 /* IBM JFS2 */
 
#define DTYPE_CGD   17 /* cryptographic pseudo-disk */
 
#define DTYPE_VINUM   18 /* vinum volume */
 
#define FS_UNUSED   0 /* unused */
 
#define FS_SWAP   1 /* swap */
 
#define FS_V6   2 /* Sixth Edition */
 
#define FS_V7   3 /* Seventh Edition */
 
#define FS_SYSV   4 /* System V */
 
#define FS_V71K   5 /* V7 with 1K blocks (4.1, 2.9) */
 
#define FS_V8   6 /* Eighth Edition, 4K blocks */
 
#define FS_BSDFFS   7 /* 4.2BSD fast file system */
 
#define FS_MSDOS   8 /* MSDOS file system */
 
#define FS_BSDLFS   9 /* 4.4BSD log-structured file system */
 
#define FS_OTHER   10 /* in use, but unknown/unsupported */
 
#define FS_HPFS   11 /* OS/2 high-performance file system */
 
#define FS_ISO9660   12 /* ISO 9660, normally CD-ROM */
 
#define FS_BOOT   13 /* partition contains bootstrap */
 
#define FS_ADOS   14 /* AmigaDOS fast file system */
 
#define FS_HFS   15 /* Macintosh HFS */
 
#define FS_FILECORE   16 /* Acorn Filecore Filing System */
 
#define FS_EX2FS   17 /* Linux Extended 2 file system */
 
#define FS_NTFS   18 /* Windows/NT file system */
 
#define FS_RAID   19 /* RAIDframe component */
 
#define FS_CCD   20 /* concatenated disk component */
 
#define FS_JFS2   21 /* IBM JFS2 */
 
#define FS_APPLEUFS   22 /* Apple UFS */
 
#define FS_VINUM   23 /* Vinum */
 
#define FSMAXTYPES   (FS_VINUM + 1)
 
#define D_REMOVABLE   0x01 /* removable media */
 
#define D_ECC   0x02 /* supports ECC */
 
#define D_BADSECT   0x04 /* supports bad sector forw. */
 
#define D_RAMDISK   0x08 /* disk emulator */
 
#define D_CHAIN   0x10 /* can do back-back transfers */
 
#define d_smdflags   d_drivedata[0]
 
#define D_SSE   0x1 /* supports skip sectoring */
 
#define d_mindist   d_drivedata[1]
 
#define d_maxdist   d_drivedata[2]
 
#define d_sdist   d_drivedata[3]
 
#define d_precompcyl   d_drivedata[0]
 
#define d_gap3   d_drivedata[1] /* used only when formatting */
 
#define d_blind   d_drivedata[0]
 

Macro Definition Documentation

◆ __HAVE_OLD_DISKLABEL

#define __HAVE_OLD_DISKLABEL

Definition at line 49 of file disklabel.h.

◆ __I386_MAXDISKS

#define __I386_MAXDISKS   ((1 << 20) / MAXPARTITIONS)

Definition at line 74 of file disklabel.h.

◆ D_BADSECT

#define D_BADSECT   0x04 /* supports bad sector forw. */

Definition at line 483 of file disklabel.h.

◆ d_blind

#define d_blind   d_drivedata[0]

Definition at line 505 of file disklabel.h.

◆ d_boot0

#define d_boot0   d_un.un_b.un_d_boot0

Definition at line 151 of file disklabel.h.

◆ d_boot1

#define d_boot1   d_un.un_b.un_d_boot1

Definition at line 152 of file disklabel.h.

◆ D_CHAIN

#define D_CHAIN   0x10 /* can do back-back transfers */

Definition at line 485 of file disklabel.h.

◆ D_ECC

#define D_ECC   0x02 /* supports ECC */

Definition at line 482 of file disklabel.h.

◆ d_gap3

#define d_gap3   d_drivedata[1] /* used only when formatting */

Definition at line 500 of file disklabel.h.

◆ d_maxdist

#define d_maxdist   d_drivedata[2]

Definition at line 493 of file disklabel.h.

◆ d_mindist

#define d_mindist   d_drivedata[1]

Definition at line 492 of file disklabel.h.

◆ d_packname

#define d_packname   d_un.un_d_packname

Definition at line 150 of file disklabel.h.

◆ d_precompcyl

#define d_precompcyl   d_drivedata[0]

Definition at line 499 of file disklabel.h.

◆ D_RAMDISK

#define D_RAMDISK   0x08 /* disk emulator */

Definition at line 484 of file disklabel.h.

◆ D_REMOVABLE

#define D_REMOVABLE   0x01 /* removable media */

Definition at line 481 of file disklabel.h.

◆ d_sdist

#define d_sdist   d_drivedata[3]

Definition at line 494 of file disklabel.h.

◆ d_smdflags

#define d_smdflags   d_drivedata[0]

Definition at line 490 of file disklabel.h.

◆ D_SSE

#define D_SSE   0x1 /* supports skip sectoring */

Definition at line 491 of file disklabel.h.

◆ DISKMAGIC

#define DISKMAGIC   ((u_int32_t)0x82564557) /* The disk magic number */

Definition at line 126 of file disklabel.h.

◆ DISKMINOR

#define DISKMINOR (   unit,
  part 
)
Value:
(((unit) * OLDMAXPARTITIONS) + ((part) % OLDMAXPARTITIONS) + \
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
#define __I386_MAXDISKS
Definition: disklabel.h:74
#define OLDMAXPARTITIONS
Definition: disklabel.h:66

Definition at line 78 of file disklabel.h.

◆ DISKPART

#define DISKPART (   dev)
Value:
#define __I386_MAXDISKS
Definition: disklabel.h:74
#define minor(rdev)
Definition: propsheet.cpp:880
#define OLDMAXPARTITIONS
Definition: disklabel.h:66

Definition at line 76 of file disklabel.h.

◆ DISKUNIT

#define DISKUNIT (   dev)    ((minor(dev) / OLDMAXPARTITIONS) % __I386_MAXDISKS)

Definition at line 75 of file disklabel.h.

◆ DTYPE_ATAPI

#define DTYPE_ATAPI   13 /* ATAPI */

Definition at line 313 of file disklabel.h.

◆ DTYPE_CCD

#define DTYPE_CCD   11 /* concatenated disk device */

Definition at line 311 of file disklabel.h.

◆ DTYPE_CGD

#define DTYPE_CGD   17 /* cryptographic pseudo-disk */

Definition at line 317 of file disklabel.h.

◆ DTYPE_DEC

#define DTYPE_DEC   3 /* other DEC (rk, rl) */

Definition at line 304 of file disklabel.h.

◆ DTYPE_ESDI

#define DTYPE_ESDI   5 /* ESDI interface */

Definition at line 306 of file disklabel.h.

◆ DTYPE_FLOPPY

#define DTYPE_FLOPPY   10 /* floppy */

Definition at line 310 of file disklabel.h.

◆ DTYPE_HPFL

#define DTYPE_HPFL   8 /* HP Fiber-link */

Definition at line 309 of file disklabel.h.

◆ DTYPE_HPIB

#define DTYPE_HPIB   7 /* CS/80 on HP-IB */

Definition at line 308 of file disklabel.h.

◆ DTYPE_JFS2

#define DTYPE_JFS2   16 /* IBM JFS2 */

Definition at line 316 of file disklabel.h.

◆ DTYPE_LD

#define DTYPE_LD   15 /* logical disk */

Definition at line 315 of file disklabel.h.

◆ DTYPE_MSCP

#define DTYPE_MSCP   2 /* MSCP */

Definition at line 303 of file disklabel.h.

◆ DTYPE_RAID

#define DTYPE_RAID   14 /* RAIDframe */

Definition at line 314 of file disklabel.h.

◆ DTYPE_SCSI

#define DTYPE_SCSI   4 /* SCSI */

Definition at line 305 of file disklabel.h.

◆ DTYPE_SMD

#define DTYPE_SMD   1 /* SMD, XSMD; VAX hp/up */

Definition at line 302 of file disklabel.h.

◆ DTYPE_ST506

#define DTYPE_ST506   6 /* ST506 etc. */

Definition at line 307 of file disklabel.h.

◆ DTYPE_VINUM

#define DTYPE_VINUM   18 /* vinum volume */

Definition at line 318 of file disklabel.h.

◆ DTYPE_VND

#define DTYPE_VND   12 /* vnode pseudo-disk */

Definition at line 312 of file disklabel.h.

◆ FS_ADOS

#define FS_ADOS   14 /* AmigaDOS fast file system */

Definition at line 367 of file disklabel.h.

◆ FS_APPLEUFS

#define FS_APPLEUFS   22 /* Apple UFS */

Definition at line 375 of file disklabel.h.

◆ FS_BOOT

#define FS_BOOT   13 /* partition contains bootstrap */

Definition at line 366 of file disklabel.h.

◆ FS_BSDFFS

#define FS_BSDFFS   7 /* 4.2BSD fast file system */

Definition at line 360 of file disklabel.h.

◆ FS_BSDLFS

#define FS_BSDLFS   9 /* 4.4BSD log-structured file system */

Definition at line 362 of file disklabel.h.

◆ FS_CCD

#define FS_CCD   20 /* concatenated disk component */

Definition at line 373 of file disklabel.h.

◆ FS_EX2FS

#define FS_EX2FS   17 /* Linux Extended 2 file system */

Definition at line 370 of file disklabel.h.

◆ FS_FILECORE

#define FS_FILECORE   16 /* Acorn Filecore Filing System */

Definition at line 369 of file disklabel.h.

◆ FS_HFS

#define FS_HFS   15 /* Macintosh HFS */

Definition at line 368 of file disklabel.h.

◆ FS_HPFS

#define FS_HPFS   11 /* OS/2 high-performance file system */

Definition at line 364 of file disklabel.h.

◆ FS_ISO9660

#define FS_ISO9660   12 /* ISO 9660, normally CD-ROM */

Definition at line 365 of file disklabel.h.

◆ FS_JFS2

#define FS_JFS2   21 /* IBM JFS2 */

Definition at line 374 of file disklabel.h.

◆ FS_MSDOS

#define FS_MSDOS   8 /* MSDOS file system */

Definition at line 361 of file disklabel.h.

◆ FS_NTFS

#define FS_NTFS   18 /* Windows/NT file system */

Definition at line 371 of file disklabel.h.

◆ FS_OTHER

#define FS_OTHER   10 /* in use, but unknown/unsupported */

Definition at line 363 of file disklabel.h.

◆ FS_RAID

#define FS_RAID   19 /* RAIDframe component */

Definition at line 372 of file disklabel.h.

◆ FS_SWAP

#define FS_SWAP   1 /* swap */

Definition at line 354 of file disklabel.h.

◆ FS_SYSV

#define FS_SYSV   4 /* System V */

Definition at line 357 of file disklabel.h.

◆ FS_UNUSED

#define FS_UNUSED   0 /* unused */

Definition at line 353 of file disklabel.h.

◆ FS_V6

#define FS_V6   2 /* Sixth Edition */

Definition at line 355 of file disklabel.h.

◆ FS_V7

#define FS_V7   3 /* Seventh Edition */

Definition at line 356 of file disklabel.h.

◆ FS_V71K

#define FS_V71K   5 /* V7 with 1K blocks (4.1, 2.9) */

Definition at line 358 of file disklabel.h.

◆ FS_V8

#define FS_V8   6 /* Eighth Edition, 4K blocks */

Definition at line 359 of file disklabel.h.

◆ FS_VINUM

#define FS_VINUM   23 /* Vinum */

Definition at line 377 of file disklabel.h.

◆ FSMAXTYPES

#define FSMAXTYPES   (FS_VINUM + 1)

Definition at line 411 of file disklabel.h.

◆ LABELOFFSET

#define LABELOFFSET   0 /* offset of label in sector */

Definition at line 64 of file disklabel.h.

◆ LABELSECTOR

#define LABELSECTOR   1 /* sector containing label */

Definition at line 63 of file disklabel.h.

◆ MAKEDISKDEV

#define MAKEDISKDEV (   maj,
  unit,
  part 
)    (makedev((maj), DISKMINOR((unit), (part))))

Definition at line 123 of file disklabel.h.

◆ MAXMAXPARTITIONS

#define MAXMAXPARTITIONS   22

Definition at line 93 of file disklabel.h.

◆ MAXPARTITIONS

#define MAXPARTITIONS   16 /* number of partitions */

Definition at line 65 of file disklabel.h.

◆ NDDATA

#define NDDATA   5

Definition at line 200 of file disklabel.h.

◆ NSPARE

#define NSPARE   5

Definition at line 202 of file disklabel.h.

◆ OLDMAXPARTITIONS

#define OLDMAXPARTITIONS   8 /* number of partitions before 1.6 */

Definition at line 66 of file disklabel.h.

◆ p_cdsession

#define p_cdsession   __partition_u2.cdsession

Definition at line 220 of file disklabel.h.

◆ p_cpg

#define p_cpg   __partition_u1.cpg

Definition at line 227 of file disklabel.h.

◆ p_fsize

Definition at line 219 of file disklabel.h.

◆ p_sgs

#define p_sgs   __partition_u1.sgs

Definition at line 228 of file disklabel.h.

◆ RAW_PART

#define RAW_PART   3 /* raw partition: XX?d (XXX) */

Definition at line 67 of file disklabel.h.