disklabel
struct disklabel *
static struct disklabel disk;
struct disklabel *dp = &disk;
checklabel(struct disklabel *lp)
struct disklabel *vl;
static struct disklabel *
static struct disklabel loclab;
fixlabel(struct disklabel *lp)
makelabel(const char *type, struct disklabel *lp)
struct disklabel *dp;
struct disklabel *lp = &lab;
display(FILE *f, const struct disklabel *lp)
struct disklabel label;
static void makelabel(const char *, struct disklabel *);
getasciilabel(FILE *f, struct disklabel *lp)
static void display(FILE *, const struct disklabel *);
static void fixlabel(struct disklabel *);
static int getasciilabel(FILE *, struct disklabel *);
static int getasciipartspec(char *, struct disklabel *, int, int);
static int checklabel(struct disklabel *);
static struct disklabel *getvirginlabel(void);
static struct disklabel lab;
getasciipartspec(char *tp, struct disklabel *lp, int part, int lineno)
static struct disklabel *getdisklabel(void);
struct disklabel *lp;
struct disklabel *
static struct disklabel lab;
struct disklabel *lp;
compute_geometry_from_file(int fd, const char *fname, struct disklabel *lp)
struct disklabel *lp, dlp;
struct disklabel *dl;
if (table->sectorsize < sizeof(struct disklabel)) {
dl = (struct disklabel *)buf;
dl = (struct disklabel *)&ufs_buffer[bs];
dl = (struct disklabel *)&ufs_buffer[BSD_LABEL_OFFSET];
struct disklabel *dl;
struct disklabel *d;
bsd_disklabel_le_enc(u_char *ptr, struct disklabel *d)
bsd_disklabel_le_dec(u_char *ptr, struct disklabel *d, int maxpart)
if (pp->sectorsize < sizeof(struct disklabel) ||
if (pp->sectorsize < sizeof(struct disklabel))
if (pp->sectorsize < sizeof(struct disklabel) ||
CTASSERT(sizeof(struct disklabel) == 148 + BSD_NPARTS_MIN * 16);
int bsd_disklabel_le_dec(u_char *ptr, struct disklabel *d, int maxpart);
void bsd_disklabel_le_enc(u_char *ptr, struct disklabel *d);
struct disklabel *getdiskbyname(const char *);
static __inline u_int16_t dkcksum(struct disklabel *lp);
dkcksum(struct disklabel *lp)
struct disklabel *d;
memset(buf + secsz, 0, sizeof(struct disklabel));