libparted 3.6
Loading...
Searching...
No Matches
Macros | Typedefs | Functions | Variables
bsd.c File Reference

Macros

#define _(String)   (String)
 
#define BSD_BBSIZE   8192 /* size of boot area, with label */
 
#define BSD_DISKMAGIC   (0x82564557UL) /* The disk magic number */
 
#define BSD_DTYPE_DEC   3 /* other DEC (rk, rl) */
 
#define BSD_DTYPE_ESDI   5 /* ESDI interface */
 
#define BSD_DTYPE_FLOPPY   10 /* floppy */
 
#define BSD_DTYPE_HPFL   8 /* HP Fiber-link */
 
#define BSD_DTYPE_HPIB   7 /* CS/80 on HP-IB */
 
#define BSD_DTYPE_MSCP   2 /* MSCP */
 
#define BSD_DTYPE_SCSI   4 /* SCSI */
 
#define BSD_DTYPE_SMD   1 /* SMD, XSMD; VAX hp/up */
 
#define BSD_DTYPE_ST506   6 /* ST506 etc. */
 
#define BSD_FS_UNUSED   0 /* disklabel unused partition entry ID */
 
#define BSD_MAXPARTITIONS   8
 
#define BSD_SBSIZE   8192 /* max size of fs superblock */
 
#define D_PARTITIONS_WORDS   59
 
#define NDDATA   5
 
#define NSPARE   5
 

Typedefs

typedef struct _BSDDiskData BSDDiskData
 
typedef struct _BSDRawLabel BSDRawLabel
 
typedef struct _BSDRawPartition BSDRawPartition
 

Functions

struct _BSDRawPartition __attribute__ ((packed))
 
struct _BSDRawLabel __attribute__ ((packed, aligned(2)))
 
void ped_disk_bsd_done ()
 
void ped_disk_bsd_init ()
 
 PT_define_limit_functions (bsd)
 

Variables

typedef __attribute__
 
char boot_code [64]
 
uint32_t d_acylinders
 
uint32_t d_bbsize
 
uint16_t d_checksum
 
uint16_t d_cylskew
 
uint32_t d_drivedata [NDDATA]
 
uint32_t d_flags
 
uint32_t d_headswitch
 
uint16_t d_interleave
 
uint32_t d_magic
 
uint32_t d_magic2
 
uint32_t d_ncylinders
 
uint16_t d_npartitions
 
uint32_t d_nsectors
 
uint32_t d_ntracks
 
int8_t d_packname [16]
 
BSDRawPartition d_partitions [BSD_MAXPARTITIONS]
 
uint16_t d_rpm
 
uint32_t d_sbsize
 
uint32_t d_secpercyl
 
uint32_t d_secperunit
 
uint32_t d_secsize
 
uint32_t d_spare [NSPARE]
 
uint16_t d_sparespercyl
 
uint16_t d_sparespertrack
 
int16_t d_subtype
 
uint16_t d_trackskew
 
uint32_t d_trkseek
 
int16_t d_type
 
int8_t d_typename [16]
 
BSDRawLabel label
 
uint16_t p_cpg
 
uint8_t p_frag
 
uint32_t p_fsize
 
uint8_t p_fstype
 
uint32_t p_offset
 
uint32_t p_size
 
char unused [172]
 

Macro Definition Documentation

◆ _

#define _ (   String)    (String)

◆ BSD_BBSIZE

#define BSD_BBSIZE   8192 /* size of boot area, with label */

◆ BSD_DISKMAGIC

#define BSD_DISKMAGIC   (0x82564557UL) /* The disk magic number */

◆ BSD_DTYPE_DEC

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

◆ BSD_DTYPE_ESDI

#define BSD_DTYPE_ESDI   5 /* ESDI interface */

◆ BSD_DTYPE_FLOPPY

#define BSD_DTYPE_FLOPPY   10 /* floppy */

◆ BSD_DTYPE_HPFL

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

◆ BSD_DTYPE_HPIB

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

◆ BSD_DTYPE_MSCP

#define BSD_DTYPE_MSCP   2 /* MSCP */

◆ BSD_DTYPE_SCSI

#define BSD_DTYPE_SCSI   4 /* SCSI */

◆ BSD_DTYPE_SMD

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

◆ BSD_DTYPE_ST506

#define BSD_DTYPE_ST506   6 /* ST506 etc. */

◆ BSD_FS_UNUSED

#define BSD_FS_UNUSED   0 /* disklabel unused partition entry ID */

◆ BSD_MAXPARTITIONS

#define BSD_MAXPARTITIONS   8

◆ BSD_SBSIZE

#define BSD_SBSIZE   8192 /* max size of fs superblock */

◆ D_PARTITIONS_WORDS

#define D_PARTITIONS_WORDS   59

◆ NDDATA

#define NDDATA   5

◆ NSPARE

#define NSPARE   5

Typedef Documentation

◆ BSDDiskData

typedef struct _BSDDiskData BSDDiskData

◆ BSDRawLabel

typedef struct _BSDRawLabel BSDRawLabel

◆ BSDRawPartition

typedef struct _BSDRawPartition BSDRawPartition

Function Documentation

◆ __attribute__() [1/2]

struct _BSDRawPartition __attribute__ ( (packed)  )

◆ __attribute__() [2/2]

struct _BSDRawLabel __attribute__ ( (packed, aligned(2))  )

◆ ped_disk_bsd_done()

void ped_disk_bsd_done ( )

◆ ped_disk_bsd_init()

void ped_disk_bsd_init ( )

◆ PT_define_limit_functions()

PT_define_limit_functions ( bsd  )

Variable Documentation

◆ __attribute__

struct __attribute__

◆ boot_code

char boot_code[64]

◆ d_acylinders

uint32_t d_acylinders

◆ d_bbsize

uint32_t d_bbsize

◆ d_checksum

uint16_t d_checksum

◆ d_cylskew

uint16_t d_cylskew

◆ d_drivedata

uint32_t d_drivedata[NDDATA]

◆ d_flags

uint32_t d_flags

◆ d_headswitch

uint32_t d_headswitch

◆ d_interleave

uint16_t d_interleave

◆ d_magic

uint32_t d_magic

◆ d_magic2

uint32_t d_magic2

◆ d_ncylinders

uint32_t d_ncylinders

◆ d_npartitions

uint16_t d_npartitions

◆ d_nsectors

uint32_t d_nsectors

◆ d_ntracks

uint32_t d_ntracks

◆ d_packname

int8_t d_packname[16]

◆ d_partitions

◆ d_rpm

uint16_t d_rpm

◆ d_sbsize

uint32_t d_sbsize

◆ d_secpercyl

uint32_t d_secpercyl

◆ d_secperunit

uint32_t d_secperunit

◆ d_secsize

uint32_t d_secsize

◆ d_spare

uint32_t d_spare[NSPARE]

◆ d_sparespercyl

uint16_t d_sparespercyl

◆ d_sparespertrack

uint16_t d_sparespertrack

◆ d_subtype

int16_t d_subtype

◆ d_trackskew

uint16_t d_trackskew

◆ d_trkseek

uint32_t d_trkseek

◆ d_type

int16_t d_type

◆ d_typename

int8_t d_typename[16]

◆ label

BSDRawLabel label

◆ p_cpg

uint16_t p_cpg

◆ p_frag

uint8_t p_frag

◆ p_fsize

uint32_t p_fsize

◆ p_fstype

uint8_t p_fstype

◆ p_offset

uint32_t p_offset

◆ p_size

uint32_t p_size

◆ unused

char unused[172]