libparted 3.6
|
Go to the source code of this file.
Data Structures | |
struct | fdasd_hd_geometry |
Macros | |
#define | BIG_DISK_SIZE 0x10000 |
#define | DASD_3380_TYPE 13148 |
#define | DASD_3380_VALUE 0xbb60 |
#define | DASD_3390_TYPE 13200 |
#define | DASD_3390_VALUE 0xe5a2 |
#define | DASD_9345_TYPE 37701 |
#define | DASD_9345_VALUE 0xbc98 |
#define | FIRST_USABLE_CYL 1 |
#define | FIRST_USABLE_TRK 2 |
#define | LINE_LENGTH 80 |
#define | LV_COMPAT_CYL 0xFFFE |
#define | VOLSER_LENGTH 6 |
#define | VTOC_START_CC 0x0 |
#define | VTOC_START_HH 0x1 |
Typedefs | |
typedef struct cchh | cchh_t |
typedef struct cchhb | cchhb_t |
typedef struct cms_volume_label | cms_volume_label_t |
typedef struct dev_const | dev_const_t |
typedef struct ds5ext | ds5ext_t |
typedef struct ds7ext | ds7ext_t |
typedef struct extent | extent_t |
typedef struct format1_label | format1_label_t |
typedef struct format4_label | format4_label_t |
typedef struct format5_label | format5_label_t |
typedef struct format7_label | format7_label_t |
typedef struct format9_label | format9_label_t |
typedef struct labeldate | labeldate_t |
typedef struct ttr | ttr_t |
typedef struct volume_label | volume_label_t |
Functions | |
struct | __attribute__ ((packed)) ttr |
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 *f4lbl, 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 *f1) |
void | vtoc_init_format9_label (format9_label_t *f9) |
void | vtoc_read_label (int fd, 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 fd, 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 fd, 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 fd, unsigned long vlabel_start, volume_label_t const *vlabel) |
#define BIG_DISK_SIZE 0x10000 |
#define DASD_3380_TYPE 13148 |
#define DASD_3380_VALUE 0xbb60 |
#define DASD_3390_TYPE 13200 |
#define DASD_3390_VALUE 0xe5a2 |
#define DASD_9345_TYPE 37701 |
#define DASD_9345_VALUE 0xbc98 |
#define FIRST_USABLE_CYL 1 |
#define FIRST_USABLE_TRK 2 |
#define LINE_LENGTH 80 |
#define LV_COMPAT_CYL 0xFFFE |
#define VOLSER_LENGTH 6 |
#define VTOC_START_CC 0x0 |
#define VTOC_START_HH 0x1 |
typedef struct cchh cchh_t |
typedef struct cchhb cchhb_t |
typedef struct cms_volume_label cms_volume_label_t |
typedef struct dev_const dev_const_t |
typedef struct ds5ext ds5ext_t |
typedef struct ds7ext ds7ext_t |
typedef struct extent extent_t |
typedef struct format1_label format1_label_t |
typedef struct format4_label format4_label_t |
typedef struct format5_label format5_label_t |
typedef struct format7_label format7_label_t |
typedef struct format9_label format9_label_t |
typedef struct labeldate labeldate_t |
typedef struct ttr ttr_t |
typedef struct volume_label volume_label_t |
struct __attribute__ | ( | (packed) | ) |
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 * | f4lbl, |
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 * | f1 | ||
) |
void vtoc_init_format9_label | ( | format9_label_t * | f9 | ) |
void vtoc_read_label | ( | int | fd, |
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 | fd, |
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 | fd, |
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 | fd, |
unsigned long | vlabel_start, | ||
volume_label_t const * | vlabel | ||
) |