Home | History | Annotate | Download | only in boot

Lines Matching defs:partition

113 	/* find partition in NetBSD disklabel */
139 struct partition *p;
154 * find NetBSD Partition in DOS partition table
171 /* Look for NetBSD partition ID */
211 printf("old BSD partition ID!\n");
219 * 2. no NetBSD partition in MBR
239 * Determine likely partition for possible sector number of dos
240 * partition.
246 u_int partition = 0;
249 /* Look for netbsd partition that is the dos boot one */
256 for (partition = lp->d_npartitions; --partition;){
257 if (lp->d_partitions[partition].p_fstype == FS_UNUSED)
259 if (lp->d_partitions[partition].p_offset == sector)
265 return (partition);
275 int partition;
286 partition = va_arg(ap, int);
288 bi_disk.partition = partition;
291 if (partition == RAW_PART)
302 if (partition >= lp->d_npartitions ||
303 lp->d_partitions[partition].p_fstype == FS_UNUSED) {
305 printf("illegal partition\n");
315 d->boff = lp->d_partitions[partition].p_offset;
316 if (lp->d_partitions[partition].p_fstype == FS_RAID) {
322 printf("partition @%d\n", d->boff);