* util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
* grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info): to here. New return value start. All users updated. Recursively scan linear mappings. * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New proto. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start): Use grub_util_get_dm_node_linear_info. * util/getroot.c (convert_system_partition_to_system_disk): Use grub_util_info rather than grub_dprintf. (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
This commit is contained in:
parent
60fde14d3e
commit
558d3a6023
4 changed files with 128 additions and 141 deletions
|
@ -65,4 +65,11 @@ grub_util_get_fd_size (int fd, const char *name, unsigned *log_secsize);
|
|||
char *
|
||||
grub_util_get_os_disk (const char *os_dev);
|
||||
|
||||
#ifdef HAVE_DEVICE_MAPPER
|
||||
int
|
||||
grub_util_get_dm_node_linear_info (const char *dev,
|
||||
int *maj, int *min,
|
||||
grub_disk_addr_t *st);
|
||||
#endif
|
||||
|
||||
#endif /* ! GRUB_BIOSDISK_MACHINE_UTIL_HEADER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue