libparted 3.6
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
vtoc.c File Reference

Macros

#define _(String)   (String)
 
#define PDEBUG
 

Enumerations

enum  failure { unable_to_open , unable_to_seek , unable_to_write , unable_to_read }
 

Functions

u_int64_t cchh2blk (cchh_t *p, struct fdasd_hd_geometry *geo)
 
u_int32_t cchh2trk (cchh_t *p, struct fdasd_hd_geometry *geo)
 
u_int64_t cchhb2blk (cchhb_t *p, struct fdasd_hd_geometry *geo)
 
char * vtoc_ebcdic_dec (char const *source, char *target, int l)
 
char * vtoc_ebcdic_enc (char const *source, char *target, int l)
 
u_int32_t vtoc_get_cyl_from_cchh (cchh_t *addr)
 
u_int32_t vtoc_get_cyl_from_cchhb (cchhb_t *addr)
 
u_int16_t vtoc_get_head_from_cchh (cchh_t *addr)
 
u_int16_t vtoc_get_head_from_cchhb (cchhb_t *addr)
 
void vtoc_init_format1_label (unsigned int blksize, extent_t *part_extent, format1_label_t *f1)
 
void vtoc_init_format4_label (format4_label_t *f4, unsigned int compat_cylinders, unsigned int real_cylinders, unsigned int tracks, unsigned int blocks, unsigned int blksize, u_int16_t dev_type)
 
void vtoc_init_format5_label (format5_label_t *f5)
 
void vtoc_init_format7_label (format7_label_t *f7)
 
void vtoc_init_format8_label (unsigned int blksize, extent_t *part_extent, format1_label_t *f8)
 
void vtoc_init_format9_label (format9_label_t *f9)
 
void vtoc_init_format_1_8_label (unsigned int blksize, extent_t *part_extent, format1_label_t *f1)
 
void vtoc_read_label (int f, unsigned long position, format1_label_t *f1, format4_label_t *f4, format5_label_t *f5, format7_label_t *f7)
 
int vtoc_read_volume_label (int f, unsigned long vlabel_start, volume_label_t *vlabel)
 
void vtoc_set_cchh (cchh_t *addr, u_int32_t cc, u_int16_t hh)
 
void vtoc_set_cchhb (cchhb_t *addr, u_int32_t cc, u_int16_t hh, u_int8_t b)
 
void vtoc_set_date (labeldate_t *d, u_int8_t year, u_int16_t day)
 
void vtoc_set_extent (extent_t *ext, u_int8_t typeind, u_int8_t seqno, cchh_t *lower, cchh_t *upper)
 
void vtoc_set_freespace (format4_label_t *f4, format5_label_t *f5, format7_label_t *f7, char ch, int verbose, u_int32_t start, u_int32_t stop, u_int32_t cyl, u_int32_t trk)
 
void vtoc_update_format4_label (format4_label_t *f4, cchhb_t *highest_f1, u_int16_t unused_update)
 
void vtoc_update_format5_label_add (format5_label_t *f5, int verbose, int trk, u_int16_t a, u_int16_t b, u_int8_t c)
 
void vtoc_update_format5_label_del (format5_label_t *f5, int verbose, int trk, u_int16_t a, u_int16_t b, u_int8_t c)
 
void vtoc_update_format7_label_add (format7_label_t *f7, int verbose, u_int32_t a, u_int32_t b)
 
void vtoc_update_format7_label_del (format7_label_t *f7, int verbose, u_int32_t a, u_int32_t b)
 
void vtoc_update_format8_label (cchhb_t *associated_f9, format1_label_t *f8)
 
char * vtoc_volume_label_get_label (volume_label_t *vlabel, char *lbl)
 
char * vtoc_volume_label_get_volser (volume_label_t *vlabel, char *volser)
 
void vtoc_volume_label_init (volume_label_t *vlabel)
 
void vtoc_volume_label_set_key (volume_label_t *vlabel, char const *key)
 
void vtoc_volume_label_set_label (volume_label_t *vlabel, char const *lbl)
 
void vtoc_volume_label_set_volser (volume_label_t *vlabel, char const *volser)
 
void vtoc_write_label (int f, unsigned long position, format1_label_t const *f1, format4_label_t const *f4, format5_label_t const *f5, format7_label_t const *f7, format9_label_t const *f9)
 
int vtoc_write_volume_label (int f, unsigned long vlabel_start, volume_label_t const *vlabel)
 

Macro Definition Documentation

◆ _

#define _ (   String)    (String)

◆ PDEBUG

#define PDEBUG

Enumeration Type Documentation

◆ failure

enum failure
Enumerator
unable_to_open 
unable_to_seek 
unable_to_write 
unable_to_read 

Function Documentation

◆ cchh2blk()

u_int64_t cchh2blk ( cchh_t p,
struct fdasd_hd_geometry geo 
)

◆ cchh2trk()

u_int32_t cchh2trk ( cchh_t p,
struct fdasd_hd_geometry geo 
)

◆ cchhb2blk()

u_int64_t cchhb2blk ( cchhb_t p,
struct fdasd_hd_geometry geo 
)

◆ vtoc_ebcdic_dec()

char * vtoc_ebcdic_dec ( char const *  source,
char *  target,
int  l 
)

◆ vtoc_ebcdic_enc()

char * vtoc_ebcdic_enc ( char const *  source,
char *  target,
int  l 
)

◆ vtoc_get_cyl_from_cchh()

u_int32_t vtoc_get_cyl_from_cchh ( cchh_t addr)

◆ vtoc_get_cyl_from_cchhb()

u_int32_t vtoc_get_cyl_from_cchhb ( cchhb_t addr)

◆ vtoc_get_head_from_cchh()

u_int16_t vtoc_get_head_from_cchh ( cchh_t addr)

◆ vtoc_get_head_from_cchhb()

u_int16_t vtoc_get_head_from_cchhb ( cchhb_t addr)

◆ vtoc_init_format1_label()

void vtoc_init_format1_label ( unsigned int  blksize,
extent_t part_extent,
format1_label_t f1 
)

◆ vtoc_init_format4_label()

void vtoc_init_format4_label ( format4_label_t f4,
unsigned int  compat_cylinders,
unsigned int  real_cylinders,
unsigned int  tracks,
unsigned int  blocks,
unsigned int  blksize,
u_int16_t  dev_type 
)

◆ vtoc_init_format5_label()

void vtoc_init_format5_label ( format5_label_t f5)

◆ vtoc_init_format7_label()

void vtoc_init_format7_label ( format7_label_t f7)

◆ vtoc_init_format8_label()

void vtoc_init_format8_label ( unsigned int  blksize,
extent_t part_extent,
format1_label_t f8 
)

◆ vtoc_init_format9_label()

void vtoc_init_format9_label ( format9_label_t f9)

◆ vtoc_init_format_1_8_label()

void vtoc_init_format_1_8_label ( unsigned int  blksize,
extent_t part_extent,
format1_label_t f1 
)

◆ vtoc_read_label()

void vtoc_read_label ( int  f,
unsigned long  position,
format1_label_t f1,
format4_label_t f4,
format5_label_t f5,
format7_label_t f7 
)

◆ vtoc_read_volume_label()

int vtoc_read_volume_label ( int  f,
unsigned long  vlabel_start,
volume_label_t vlabel 
)

◆ vtoc_set_cchh()

void vtoc_set_cchh ( cchh_t addr,
u_int32_t  cc,
u_int16_t  hh 
)

◆ vtoc_set_cchhb()

void vtoc_set_cchhb ( cchhb_t addr,
u_int32_t  cc,
u_int16_t  hh,
u_int8_t  b 
)

◆ vtoc_set_date()

void vtoc_set_date ( labeldate_t d,
u_int8_t  year,
u_int16_t  day 
)

◆ vtoc_set_extent()

void vtoc_set_extent ( extent_t ext,
u_int8_t  typeind,
u_int8_t  seqno,
cchh_t lower,
cchh_t upper 
)

◆ vtoc_set_freespace()

void vtoc_set_freespace ( format4_label_t f4,
format5_label_t f5,
format7_label_t f7,
char  ch,
int  verbose,
u_int32_t  start,
u_int32_t  stop,
u_int32_t  cyl,
u_int32_t  trk 
)

◆ vtoc_update_format4_label()

void vtoc_update_format4_label ( format4_label_t f4,
cchhb_t highest_f1,
u_int16_t  unused_update 
)

◆ vtoc_update_format5_label_add()

void vtoc_update_format5_label_add ( format5_label_t f5,
int  verbose,
int  trk,
u_int16_t  a,
u_int16_t  b,
u_int8_t  c 
)

◆ vtoc_update_format5_label_del()

void vtoc_update_format5_label_del ( format5_label_t f5,
int  verbose,
int  trk,
u_int16_t  a,
u_int16_t  b,
u_int8_t  c 
)

◆ vtoc_update_format7_label_add()

void vtoc_update_format7_label_add ( format7_label_t f7,
int  verbose,
u_int32_t  a,
u_int32_t  b 
)

◆ vtoc_update_format7_label_del()

void vtoc_update_format7_label_del ( format7_label_t f7,
int  verbose,
u_int32_t  a,
u_int32_t  b 
)

◆ vtoc_update_format8_label()

void vtoc_update_format8_label ( cchhb_t associated_f9,
format1_label_t f8 
)

◆ vtoc_volume_label_get_label()

char * vtoc_volume_label_get_label ( volume_label_t vlabel,
char *  lbl 
)

◆ vtoc_volume_label_get_volser()

char * vtoc_volume_label_get_volser ( volume_label_t vlabel,
char *  volser 
)

◆ vtoc_volume_label_init()

void vtoc_volume_label_init ( volume_label_t vlabel)

◆ vtoc_volume_label_set_key()

void vtoc_volume_label_set_key ( volume_label_t vlabel,
char const *  key 
)

◆ vtoc_volume_label_set_label()

void vtoc_volume_label_set_label ( volume_label_t vlabel,
char const *  lbl 
)

◆ vtoc_volume_label_set_volser()

void vtoc_volume_label_set_volser ( volume_label_t vlabel,
char const *  volser 
)

◆ vtoc_write_label()

void vtoc_write_label ( int  f,
unsigned long  position,
format1_label_t const *  f1,
format4_label_t const *  f4,
format5_label_t const *  f5,
format7_label_t const *  f7,
format9_label_t const *  f9 
)

◆ vtoc_write_volume_label()

int vtoc_write_volume_label ( int  f,
unsigned long  vlabel_start,
volume_label_t const *  vlabel 
)