Lines Matching refs:partition

25 #include <grub/partition.h>
649 /* Cache of partition start sectors for each disk. */
799 with the one for a partition of the disk. */
805 part_start = grub_partition_get_start (disk->partition);
808 if (disk->partition && sector >= part_start
836 /* Open the partition. */
998 /* Split pre-partition and partition reads. */
999 if (disk->partition && sector < disk->partition->start
1000 && sector + size > disk->partition->start)
1004 disk->partition->start - sector,
1009 return grub_util_biosdisk_read (disk, disk->partition->start,
1010 size - (disk->partition->start - sector),
1011 buf + ((disk->partition->start - sector)
1051 /* Split pre-partition and partition writes. */
1052 if (disk->partition && sector < disk->partition->start
1053 && sector + size > disk->partition->start)
1057 disk->partition->start - sector,
1062 return grub_util_biosdisk_write (disk, disk->partition->start,
1063 size - (disk->partition->start - sector),
1064 buf + ((disk->partition->start - sector)
1259 * Note: we do not use the new partition naming scheme as dos_part does not
1260 * necessarily correspond to an msdos partition.
1559 device containing a DM-RAID partition device as a "child" of
1560 the partition device. */
1589 /* This is a DM-RAID disk, not a partition. */
1887 /* Linux counts partitions uniformly, whether a BSD partition or a DOS
1888 partition, so mapping them to GRUB devices is not trivial.
1889 Here, get the start sector of a partition by HDIO_GETGEO, and
1890 compare it with each partition GRUB recognizes.
1892 Cygwin /dev/sdXN emulation uses Windows partition mapping. It
1893 does not count the extended partition and missing primary
1903 const grub_partition_t partition);
1906 const grub_partition_t partition)
1910 grub_partition_get_name (partition),
1911 partition->number, partition->start);
1913 part_start = grub_partition_get_start (partition);
1917 partname = grub_partition_get_name (partition);
1952 /* We already know that the partition exists. Given that we already
1956 assigned to devices that have partition-like names in the guest
1961 ("disk does not exist, so falling back to partition device %s",
1989 grub_util_info ("cannot find the partition of `%s'", os_dev);
1991 "cannot find the partition of `%s'", os_dev);
2053 const grub_partition_t partition);
2056 const grub_partition_t partition)
2060 partition->number, partition->start,
2061 partition->parent ? " (relative to its parent)" : "",
2062 partition->len);
2064 part_start = grub_partition_get_start (partition);
2067 solaris_part_len == partition->len)
2069 if (partition->parent)
2071 dos_part = partition->parent->number;
2072 slice = partition->number;
2076 dos_part = partition->number;
2079 partition_part = grub_partition_get_name(partition);
2121 grub_util_info("Solaris partition start %llu size %llu",
2153 "cannot find the partition of `%s'", os_dev);