[syslinux:master] hdt: Display non-sequentials disks configurations
syslinux-bot for Erwan Velu
erwanaliasr1 at gmail.com
Mon Apr 25 15:29:02 PDT 2011
Commit-ID: 86e551c6b5865d11d7118e1eea6fc751a2ab4122
Gitweb: http://syslinux.zytor.com/commit/86e551c6b5865d11d7118e1eea6fc751a2ab4122
Author: Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Wed, 13 Apr 2011 20:42:38 +0200
Committer: Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Wed, 13 Apr 2011 20:42:38 +0200
hdt: Display non-sequentials disks configurations
If the location of the disks wasn't sequential on the system, the menu
mode was missing some.
This commit fix ticket #46.
Thanks gerth for reporting.
---
com32/hdt/hdt-menu-disk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c
index b0b4a5a..6862e04 100644
--- a/com32/hdt/hdt-menu-disk.c
+++ b/com32/hdt/hdt-menu-disk.c
@@ -243,12 +243,12 @@ void compute_disks(struct s_hdt_menu *menu, struct s_hardware *hardware)
if (hardware->disks_count == 0)
return;
- for (int i = 0; i < hardware->disks_count; i++) {
- if (!hardware->disk_info[i].cbios)
+ for (int drive = 0x80; drive < 0xff; drive++) {
+ if (!hardware->disk_info[drive - 0x80].cbios)
continue; /* Invalid geometry */
compute_disk_module
((struct s_my_menu *)&(menu->disk_sub_menu), nb_sub_disk_menu,
- hardware, i);
+ hardware, drive - 0x80);
nb_sub_disk_menu++;
}
More information about the Syslinux-commits
mailing list