Remove part_ prefix

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-06 19:33:53 +01:00
parent bc6fcf0931
commit 85f90358b1
13 changed files with 25 additions and 16 deletions

View file

@ -105,7 +105,7 @@ grub_chainloader_cmd (const char *filename, grub_chainloader_flags_t flags)
{
grub_partition_t p = disk->partition;
if (p && grub_strcmp (p->partmap->name, "part_msdos") == 0)
if (p && grub_strcmp (p->partmap->name, "msdos") == 0)
{
disk->partition = p->parent;
grub_disk_read (disk, p->offset, 446, 64,

View file

@ -131,7 +131,7 @@ acorn_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_acorn_partition_map =
{
.name = "part_acorn",
.name = "acorn",
.iterate = acorn_partition_map_iterate,
};

View file

@ -138,7 +138,7 @@ amiga_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_amiga_partition_map =
{
.name = "part_amiga",
.name = "amiga",
.iterate = amiga_partition_map_iterate,
};

View file

@ -182,7 +182,7 @@ apple_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_apple_partition_map =
{
.name = "part_apple",
.name = "apple",
.iterate = apple_partition_map_iterate,
};

View file

@ -82,7 +82,7 @@ bsdlabel_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_bsdlabel_partition_map =
{
.name = "part_bsd",
.name = "bsd",
.iterate = bsdlabel_partition_map_iterate,
};

View file

@ -119,7 +119,7 @@ gpt_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_gpt_partition_map =
{
.name = "part_gpt",
.name = "gpt",
.iterate = gpt_partition_map_iterate,
};

View file

@ -138,7 +138,7 @@ pc_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_msdos_partition_map =
{
.name = "part_msdos",
.name = "msdos",
.iterate = pc_partition_map_iterate,
};

View file

@ -137,7 +137,7 @@ sun_partition_map_iterate (grub_disk_t disk,
/* Partition map type. */
static struct grub_partition_map grub_sun_partition_map =
{
.name = "part_sun",
.name = "sun",
.iterate = sun_partition_map_iterate,
};

View file

@ -140,10 +140,10 @@ static grub_err_t grub_pcpart_type (const grub_device_t dev,
GRUB_MOD_INIT (pcpart)
{
activate_table_handle = grub_parttool_register ("part_msdos",
activate_table_handle = grub_parttool_register ("msdos",
grub_pcpart_boot,
grub_pcpart_bootargs);
type_table_handle = grub_parttool_register ("part_msdos",
type_table_handle = grub_parttool_register ("msdos",
grub_pcpart_type,
grub_pcpart_typeargs);

View file

@ -287,7 +287,10 @@ fi
# Then the partition map module. In order to support partition-less media,
# this command is allowed to fail (--target=fs already grants us that the
# filesystem will be accessible).
partmap_module=`$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`
partmap_module=
for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
partmap_module="$partmap_module part_$x";
done
# Device abstraction module, if any (lvm, raid).
devabstraction_module=`$grub_probe --target=abstraction --device ${grub_device}`

View file

@ -194,7 +194,10 @@ fi
# Then the partition map module. In order to support partition-less media,
# this command is allowed to fail (--target=fs already grants us that the
# filesystem will be accessible).
partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} 2> /dev/null`
partmap_module=
for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
partmap_module="$partmap_module part_$x";
done
# Device abstraction module, if any (lvm, raid).
devabstraction_module=`$grub_probe --target=abstraction --device-map=${device_map} ${grubdir}`

View file

@ -343,16 +343,16 @@ setup (const char *dir,
goto unable_to_embed;
}
if (strcmp (dest_partmap, "part_msdos") == 0)
if (strcmp (dest_partmap, "msdos") == 0)
grub_partition_iterate (dest_dev->disk, find_usable_region_msdos);
else if (strcmp (dest_partmap, "part_gpt") == 0)
else if (strcmp (dest_partmap, "gpt") == 0)
grub_partition_iterate (dest_dev->disk, find_usable_region_gpt);
else
grub_util_error (_("No DOS-style partitions found"));
if (embed_region.end == embed_region.start)
{
if (! strcmp (dest_partmap, "part_msdos"))
if (! strcmp (dest_partmap, "msdos"))
grub_util_warn (_("This msdos-style partition label has no post-MBR gap; embedding won't be possible!"));
else
grub_util_warn (_("This GPT partition label has no BIOS Boot Partition; embedding won't be possible!"));

View file

@ -179,7 +179,10 @@ fi
# Then the partition map module. In order to support partition-less media,
# this command is allowed to fail (--target=fs already grants us that the
# filesystem will be accessible).
partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} 2> /dev/null`
partmap_module=
for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
partmap_module="$partmap_module part_$x";
done
# Device abstraction module, if any (lvm, raid).
devabstraction_module=`$grub_probe --target=abstraction --device-map=${device_map} ${grubdir}`