Lines Matching refs:disklabel
51 static char sccsid[] = "@(#)disklabel.c 8.2 (Berkeley) 1/7/94";
52 /* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
67 #include <sys/disklabel.h>
82 static void makelabel(const char *, struct disklabel *);
86 static void display(FILE *, const struct disklabel *);
89 static void fixlabel(struct disklabel *);
92 static int getasciilabel(FILE *, struct disklabel *);
93 static int getasciipartspec(char *, struct disklabel *, int, int);
94 static int checklabel(struct disklabel *);
96 static struct disklabel *getvirginlabel(void);
105 static struct disklabel lab;
192 * historical disklabel usage.
300 fixlabel(struct disklabel *lp)
318 * Construct a prototype disklabel from /etc/disktab.
321 makelabel(const char *type, struct disklabel *lp)
323 struct disklabel *dp;
385 struct disklabel *lp = &lab;
485 * Fetch disklabel for disk.
551 display(FILE *f, const struct disklabel *lp)
652 struct disklabel label;
766 getasciilabel(FILE *f, struct disklabel *lp)
988 "line %d: %s: Unknown disklabel field\n", lineno,
1038 * Read a partition line into partition `part' in the specified disklabel.
1042 getasciipartspec(char *tp, struct disklabel *lp, int part, int lineno)
1120 * Check disklabel for errors and fill in
1124 checklabel(struct disklabel *lp)
1179 struct disklabel *vl;
1480 * without even having access to a (BSD) disklabel, like SCSI disks,
1485 static struct disklabel *
1488 static struct disklabel loclab;