ipart
struct ipart *part =
(struct ipart *)(uintptr_t)mboot->parts + i;
struct ipart *part;
part = (struct ipart *)mbr->parts;
struct ipart *part;
part = (struct ipart *)mbr->parts;
struct ipart *part;
part = (struct ipart *)mbr->parts;
struct ipart *part;
part = (struct ipart *)mboot->parts + i;
struct ipart *part = NULL;
part = (struct ipart *)mboot->parts + i;
struct ipart *part;
part = (struct ipart *)BootCod.parts;
(void) memset(part, 0, sizeof (struct ipart));
sizeof (struct ipart));
(void) memset(&Table[i], 0, sizeof (struct ipart));
struct ipart *partition[FD_NUMPART];
struct ipart localpart[FD_NUMPART];
static struct ipart Table[FD_NUMPART];
static struct ipart Old_Table[FD_NUMPART];
(void) memset(&localpart[j], 0, sizeof (struct ipart));
struct ipart *temp = partition[i];
(void) memset(&Table[i], 0, sizeof (struct ipart));
struct ipart iparts[FD_NUMPART];
(void) memset(&Table[i], 0, sizeof (struct ipart));
bootptr += sizeof (struct ipart);
fill_ipart(char *bootptr, struct ipart *partp)
*partp = *(struct ipart *)bootptr;
struct ipart *boot_ptr, *tbl_ptr;
boot_ptr = (struct ipart *)Bootblk->parts;
tbl_ptr = (struct ipart *)&Table[0].bootid;
for (; tbl_ptr < (struct ipart *)&Table[FD_NUMPART].bootid;
(void) memset(boot_ptr, 0, sizeof (struct ipart));
(void) memcpy(boot_ptr, tbl_ptr, sizeof (struct ipart));
struct ipart ext_tab;
struct ipart *clr_table;
struct ipart *fpart;
static void fill_ipart(char *bootptr, struct ipart *partp);
int copy_solaris_part(struct ipart *);
struct ipart fdisk_part; /* fdisk partition info */
fill_ipart(char *bootptr, struct ipart *partp)
(void) bcopy(bootptr, partp, sizeof (struct ipart));
get_solaris_part(int fd, struct ipart *ipart)
struct ipart ip;
ipc = i * sizeof (struct ipart);
ipart->bootid = ip.bootid;
status = bcmp(&ip, ipart,
sizeof (struct ipart));
bcopy(&ip, ipart, sizeof (struct ipart));
ipart->bootid = ip.bootid;
status = bcmp(&ip, ipart, sizeof (struct ipart));
bcopy(&ip, ipart, sizeof (struct ipart));
copy_solaris_part(struct ipart *ipart)
struct ipart ip;
ipc = i * sizeof (struct ipart);
bcopy(&ip, ipart, sizeof (struct ipart));
bcopy(&ip, ipart, sizeof (struct ipart));
struct ipart ip;
ipc = i * sizeof (struct ipart);
static int get_solaris_part(int fd, struct ipart *ipart);
int copy_solaris_part(struct ipart *ipart);
struct ipart part[FD_NUMPART];
static void fill_bpb_sizes(bpb_t *wbpb, struct ipart part[],
fill_bpb_sizes(bpb_t *wbpb, struct ipart part[], int partno, off64_t offset)
struct ipart part[FD_NUMPART];
struct ipart ipart[FD_NUMPART];
bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart));
systid = ipart[i].systid;
relsect = sec + ltohi(ipart[i].relsect);
sec = startsec + ltohi(ipart[i].relsect);
if (valid && f(arg, ipart[i].systid, relsect,
ltohi(ipart[i].numsect)) == WALK_TERMINATE) {
struct ipart ipart[FD_NUMPART];
bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart));
systid = ipart[i].systid;
relsect = sec + ltohi(ipart[i].relsect);
sec = startsec + ltohi(ipart[i].relsect);
if (valid && f(arg, ipart[i].systid, relsect,
ltohi(ipart[i].numsect)) == WALK_TERMINATE) {
print_fdisk_part(struct ipart *ip, size_t nr)
struct ipart *ip = (struct ipart *)
(mbr->parts + (sizeof (struct ipart) * i));
struct ipart *part;
part = (struct ipart *)&boot_sec->parts[i *
sizeof (struct ipart)];
struct ipart parts[FD_NUMPART];
struct ipart iparts[TOTAL_NUMPART];
struct ipart iparts[TOTAL_NUMPART];
struct ipart iparts[TOTAL_NUMPART];
get_attrs(descriptor_t *dp, struct ipart *iparts, nvlist_t *attrs)
get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len)
#define ISIZE FD_NUMPART * sizeof (struct ipart)
(void) memset(&iparts[i], 0, sizeof (struct ipart));
static int get_attrs(descriptor_t *dp, struct ipart *iparts,
static int get_parts(disk_t *disk, struct ipart *iparts, char *opath,
struct ipart iparts[TOTAL_NUMPART];
struct ipart *ipart;
ipart = (struct ipart *)(uintptr_t)mbr->parts;
if (ipart[i].systid == EFI_PMBR)
cp = (uchar_t *)&mb.parts[slot * sizeof (struct ipart)];
fdisk_set_CHS_values(ext_part_t *epp, struct ipart *part)
struct ipart *ebr_tab, uint32_t sec_offset)
bzero(&ebr_buf[FDISK_PART_TABLE_START], 4 * sizeof (struct ipart));
2 * sizeof (struct ipart));
libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab, int opflag)
static void fdisk_set_CHS_values(ext_part_t *epp, struct ipart *part);
static struct ipart *fdisk_alloc_part_table();
struct ipart *fdp, *ext_fdp;
ext_fdp = (struct ipart *)
static struct ipart *
int size = sizeof (struct ipart);
struct ipart *table;
int size = sizeof (struct ipart);
struct ipart *part_table = epp->mtable;
struct ipart *part;
struct ipart parts[2];
struct ipart *mtable;
extern int libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab,
ipart = (struct ipart *)(uintptr_t)mb->parts;
if (ipart[i].systid == SUNIXOS || ipart[i].systid == SUNIXOS2)
if (!fdisk_is_dos_extended(ipart[i].systid) ||
struct ipart *ipart;
FD_NUMPART * sizeof (struct ipart))
struct ipart dosp[FD_NUMPART]; /* incore fdisk partition structure */
struct ipart *fdp;
struct ipart fdisk[FD_NUMPART];
struct ipart eparts[2];
struct ipart *efdp1 = &eparts[0];
struct ipart *efdp2 = &eparts[1];
struct ipart *fdp;
struct ipart fdisk[FD_NUMPART];
static boolean_t cmlb_has_max_chs_vals(struct ipart *fdp);
cmlb_has_max_chs_vals(struct ipart *fdp)
char parts[FD_NUMPART * sizeof (struct ipart)];