search for: find_disk_by_partition_nam

Displaying 2 results from an estimated 2 matches for "find_disk_by_partition_nam".

2016 Jul 14
3
[PATCH] : Adding dlabel option to chain.c32
On 07/14/16 05:56, Ady Ady via Syslinux wrote: > > @Peter, Erwan, Gene, Michal, (and anyone else interested)... > > Although I haven't actually tested Erwan's patch, would it be > acceptable by you (all) if I were to send a patch to this Syslinux > Mailing List with the same code while changing the wording as I > previously suggested in a prior email? Would it be
2016 Jul 15
0
[PATCH] : Add diskbypartname option to chain.c32
...m32/chain/chain.c Fri Jul 15 01:27:23 2016 +++ diskbypartname/com32/chain/chain.c Fri Jul 15 01:00:03 2016 @@ -143,6 +143,38 @@ return drive; } +/* + * Search for a disk having a GPT partition with a specified Partition Name. + * Return disk and iterator at proper position. + */ +static int find_disk_by_partition_name(const char *label, struct part_iter **_boot_part) +{ + struct part_iter *iter = NULL; + struct disk_info diskinfo; + int drive; + + for (drive = 0x80; drive < 0x80 + fixed_cnt; drive++) { + if (disk_get_params(drive, &diskinfo)) + continue; /* Drive doesn't exist */ + i...