Lines Matching refs:partition

1 /* sunpc.c - Read SUN PC style partition tables.  */
21 #include <grub/partition.h>
78 int (*hook) (grub_disk_t disk, const grub_partition_t partition,
106 "not a sun_pc partition table");
115 /* Maybe another error value would be better, because partition
151 int (*hook) (grub_disk_t disk, const grub_partition_t partition))
207 * This partition is invalid since its span is beyond the
208 * containing msdos partition parent.
212 "area, sunpc partition %d (size 0x%llx) is being ignored "
214 "partition.\n", p->number, (unsigned long long) partlen);
220 grub_dprintf("sunpc", "overlap partition %d with %d\n",
229 "Found a sunpc embedding area in sunpc partition %d"
237 grub_dprintf("sunpc", "overlap partition %d with %d\n",
253 "%d and %d). The sunpc partition table is misconfigured "
292 if (disk->partition == NULL)
294 "sunpc_partition_map_embed: No disk partition");
296 /* save the partition */
297 savedpart = disk->partition;
299 /* we are called either with sx partition or pX partition */
301 if ((grub_strcmp (disk->partition->partmap->name , "msdos") == 0) &&
302 (disk->partition->msdostype == GRUB_PC_PARTITION_SUNIXOS ||
303 disk->partition->msdostype == GRUB_PC_PARTITION_LEGACY_SUNIXOS))
305 /* disk->partition corresponds to a primary or logical partition p[1-N] */
306 parent = disk->partition;
308 else if (grub_strcmp (disk->partition->partmap->name , "sunpc") == 0)
310 /* disk->partition corresponds to a vtoc slice sX */
311 parent = disk->partition->parent;
315 /* this is not our partition XXX what to return here*/
317 "sunpc_partition_map_embed: Not a Solaris partition");
325 "boot slice partition");
329 disk->partition = parent;
335 disk->partition = savedpart;
351 disk->partition = bootslicepart;
352 disk->partition->parent = parent;