RAW_PART
'a' + RAW_PART);
if (i != RAW_PART && DL_GETPSIZE(pp) % lp->d_secpercyl)
if (i != RAW_PART && DL_GETPOFFSET(pp) % lp->d_secpercyl)
if (partno == RAW_PART)
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
pp = &newlab.d_partitions[RAW_PART];
if (newlab.d_npartitions <= RAW_PART || DL_GETPSIZE(pp) == 0) {
if (newlab.d_npartitions <= RAW_PART)
newlab.d_npartitions = RAW_PART + 1;
if (i == RAW_PART)
if (partno == RAW_PART)
if (i == RAW_PART)
if (i == RAW_PART)
part = RAW_PART;
return (MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART));
RAW_PART));
DISKUNIT(bp->b_dev), RAW_PART);
MAKEBOOTDEV(type, 0, 0, bsdunit, RAW_PART);
DL_SETPOFFSET(&label->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&label->d_partitions[RAW_PART], 100);
label->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
dip->bios_info.bsd_dev = MAKEBOOTDEV(2, 0, 0, i, RAW_PART);
MAKEBOOTDEV(type, 0, 0, bsdunit, RAW_PART);
MAKEBOOTDEV(6, 0, 0, 0, RAW_PART);
DL_SETPOFFSET(&dip->disklabel.d_partitions[RAW_PART], 0);
DL_SETPSIZE(&dip->disklabel.d_partitions[RAW_PART], 100);
dip->disklabel.d_partitions[RAW_PART].p_fstype = FS_UNUSED;
return (MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART));
DL_SETPOFFSET(&label->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&label->d_partitions[RAW_PART], 100);
label->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
DL_SETPOFFSET(&label->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&label->d_partitions[RAW_PART], 100);
label->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
pp = &lp->d_partitions[RAW_PART + 1];
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
return (MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART));
RAW_PART));
DISKUNIT(bp->b_dev), RAW_PART);
dip->bios_info.bsd_dev = MAKEBOOTDEV(2, 0, 0, i, RAW_PART);
MAKEBOOTDEV(type, 0, 0, bsdunit, RAW_PART);
MAKEBOOTDEV(type, 0, 0, bsdunit, RAW_PART);
MAKEBOOTDEV(6, 0, 0, 0, RAW_PART);
DL_SETPOFFSET(&dip->disklabel.d_partitions[RAW_PART], 0);
DL_SETPSIZE(&dip->disklabel.d_partitions[RAW_PART], 100);
dip->disklabel.d_partitions[RAW_PART].p_fstype = FS_UNUSED;
return (MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART));
DL_SETPOFFSET(&label->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&label->d_partitions[RAW_PART], 100);
label->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
0, 0, diskno, RAW_PART);
rawdev = MAKEDISKDEV(major(chrdev), DISKUNIT(devno), RAW_PART);
DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
lp->d_partitions[RAW_PART].p_fstype = FS_ISO9660;
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
lp->d_partitions[RAW_PART].p_fstype = FS_UDF;
static int raw_part = RAW_PART;
MAKEDISKDEV(majdev, dv->dv_unit, RAW_PART);
if (part != RAW_PART && (!haslabel ||
for (i = 0; i < RAW_PART; i++) {
if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0)
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
rawdev = MAKEDISKDEV(major(chrdev), DISKUNIT(chrdev), RAW_PART);
partno = RAW_PART;
if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) != disksize)
DL_GETPSIZE(&lp->d_partitions[RAW_PART]));
if (DL_GETPOFFSET(&lp->d_partitions[RAW_PART]) != 0)
DL_GETPOFFSET(&lp->d_partitions[RAW_PART]));
DL_SETPSIZE(&lp->d_partitions[RAW_PART], disksize);
DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
nlp->d_partitions[RAW_PART] = lp->d_partitions[RAW_PART];
lp->d_partitions['i' - 'a'] = lp->d_partitions[RAW_PART];
npp = &nlp->d_partitions[RAW_PART];
if (DISKPART(dev) != RAW_PART) {
rawopen = (part == RAW_PART) && (fmt == S_IFCHR);
if (part == RAW_PART)
rawopen = (part == RAW_PART) && (fmt == S_IFCHR);
if (part == RAW_PART)
if (part != RAW_PART) {
(MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART))
if (i == RAW_PART)
if (i == RAW_PART)
lp->d_npartitions = RAW_PART + 1;
pp = &lp->d_partitions[RAW_PART]; /* a.k.a. 'c' */