dk_label
struct dk_label *dl;
if (table->sectorsize < sizeof (struct dk_label)) {
dl = (struct dk_label *)buf;
CTASSERT(sizeof(struct dk_label) == 512);
(void) memset((char *)label, 0, sizeof (struct dk_label));
struct dk_label *label,
(void) memset((char *)label, 0, sizeof (struct dk_label));
struct dk_label *label,
struct dk_label *label)
struct dk_label *label,
struct dk_label *label)
struct dk_label *label,
int build_default_partition(struct dk_label *label,
struct dk_label *label);
struct dk_label *label);
struct dk_label *label);
static int auto_label_init(struct dk_label *label);
auto_label_init(struct dk_label *label)
struct dk_label *label)
auto_direct_get_geom_label(int fd, struct dk_label *label)
struct dk_label *label)
struct dk_label *label,
struct dk_label *label);
struct dk_label *label,
struct disk_type *auto_direct_get_geom_label(int fd, struct dk_label *label);
struct dk_label label;
(void) memset((char *)&label, 0, sizeof (struct dk_label));
sizeof (struct dk_label)) == 0) {
read_label(int fd, struct dk_label *label)
static int vtoc_to_label(struct dk_label *, struct extvtoc *,
static void dump_label(struct dk_label *);
vtoc_to_label(struct dk_label *label, struct extvtoc *vtoc,
checklabel(struct dk_label *label)
(void) memset((char *)label, 0, sizeof (struct dk_label));
label_to_vtoc(struct extvtoc *vtoc, struct dk_label *label)
checksum(struct dk_label *label, int mode)
short count = (sizeof (struct dk_label)) / (sizeof (short));
dump_label(struct dk_label *label)
int checklabel(struct dk_label *);
int checksum(struct dk_label *, int);
int read_label(int, struct dk_label *);
int label_to_vtoc(struct extvtoc *, struct dk_label *);
struct dk_label label;
(void) memset((char *)&label, 0, sizeof (struct dk_label));
(void) memset((char *)&label, 0, sizeof (struct dk_label));
struct dk_label label;
(void) memcpy((char *)&label, buf, sizeof (struct dk_label));
struct dk_label p_label, b_label, *label;
if ((!checklabel((struct dk_label *)&p_label)) ||
sizeof (struct dk_label));
struct dk_label label;
struct dk_label update_label;
auto_solaris_part(struct dk_label *label)
int auto_solaris_part(struct dk_label *);
struct dk_label *label;
label = zalloc(sizeof (struct dk_label));
struct dk_label search_label;
dtype_match(struct dk_label *label, struct disk_type *dtype)
parts_match(struct dk_label *label, struct partition_info *pinfo)
int dtype_match(struct dk_label *label, struct disk_type *dtype);
int parts_match(struct dk_label *label, struct partition_info *pinfo);
struct dk_label *dl;
dl = (struct dk_label *)buf;
if ((((struct dk_label *)buf)->dkl_magic == DKL_MAGIC) &&
(((struct dk_label *)buf)->dkl_vtoc.v_sanity == VTOC_SANE)) {
struct dk_label *dkl;
(struct dk_label *)(uintptr_t)dkl, flags) !=
if ((((struct dk_label *)buf)->dkl_magic == DKL_MAGIC) &&
(((struct dk_label *)buf)->dkl_vtoc.v_sanity == VTOC_SANE)) {
if (((struct dk_label *)buf)->dkl_magic == DKL_MAGIC) {
cmlb_uselabel(struct cmlb_lun *cl, struct dk_label *labp, int flags)
static int cmlb_uselabel(struct cmlb_lun *cl, struct dk_label *l, int flags);
count = sizeof (struct dk_label) / sizeof (short);
static int cmlb_set_vtoc(struct cmlb_lun *cl, struct dk_label *dkl,
cmlb_set_vtoc(struct cmlb_lun *cl, struct dk_label *dkl, void *tg_cookie)
struct dk_label *dkl;
struct dk_label *dkl;
i = sizeof (struct dk_label) / sizeof (short);
struct dk_label *label;
label = kmem_zalloc(sizeof (struct dk_label), KM_SLEEP);
0, 0, 1, (caddr_t)label, sizeof (struct dk_label));
kmem_free(label, sizeof (struct dk_label));
struct dk_label *labelp)
struct vtoc *, struct dk_label *);
struct dk_label *label;
label = kmem_zalloc(sizeof (struct dk_label), KM_SLEEP);
unit, (void *)label, (size_t)sizeof (struct dk_label)));
sizeof (struct dk_label))) &&
sizeof (struct dk_label)) &&
sizeof (struct dk_label))))
count = sizeof (struct dk_label) / sizeof (short);
kmem_free(label, sizeof (struct dk_label));
dk_label
(caddr_t)&un->un_label, sizeof (struct dk_label));
static void fdunpacklabel(struct packed_label *, struct dk_label *);
struct dk_label *label = NULL;
label = (struct dk_label *)
kmem_zalloc(sizeof (struct dk_label), KM_SLEEP);
sizeof (struct dk_label))) &&
(caddr_t)label, sizeof (struct dk_label)) &&
sizeof (struct dk_label)))) {
count = sizeof (struct dk_label)/sizeof (short);
kmem_free((caddr_t)label, sizeof (struct dk_label));
fdunpacklabel(struct packed_label *from, struct dk_label *to)
i = sizeof (struct dk_label)/sizeof (short);
dk_label
struct dk_label un_label;
vdc_lbl2cksum(struct dk_label *label)
count = (sizeof (struct dk_label)) / (sizeof (short)) - 1;
struct dk_label *label;
vd_dskimg_set_vtoc(vd_t *vd, struct dk_label *label)
(caddr_t)label, blk + sec, sizeof (struct dk_label)) < 0) {
struct dk_label *label;
struct dk_label *label;
sizeof (struct dk_label));
0, sizeof (struct dk_label))
0, sizeof (struct dk_label))
vd_lbl2cksum(struct dk_label *label)
count = (sizeof (struct dk_label)) / (sizeof (short)) - 1;
struct dk_label *label)
bzero(label, sizeof (struct dk_label));
vd_label_to_vtocgeom(struct dk_label *label, struct extvtoc *vtoc,
struct dk_label label;
struct dk_label label;
P2ROUNDUP(sizeof (struct dk_label), (lba))
((struct dk_label *)(void *)((vd)->flabel))
struct dk_label label;
if (vd->dskimg_size < sizeof (struct dk_label)) {
sizeof (struct dk_label));
struct dk_label label;
static ushort_t vd_lbl2cksum(struct dk_label *label);
struct dk_label *label);
static void vd_label_to_vtocgeom(struct dk_label *label, struct extvtoc *vtoc,
vd_build_default_label(size_t disk_size, size_t bsize, struct dk_label *label)
bzero(label, sizeof (struct dk_label));