2008-06-26 Robert Millan <rmh@aybabtu.com>
* disk/fs_uuid.c: New file. * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'. (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS) (fs_uuid_mod_LDFLAGS): New variables. * include/grub/disk.h (grub_disk_dev_id): Add `GRUB_DISK_DEVICE_UUID_ID'. * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to implement iterate().
This commit is contained in:
parent
37aaf354c9
commit
aebe3d13bb
6 changed files with 213 additions and 3 deletions
|
@ -202,7 +202,7 @@ grub_disk_dev_iterate (int (*hook) (const char *name))
|
|||
grub_disk_dev_t p;
|
||||
|
||||
for (p = grub_disk_dev_list; p; p = p->next)
|
||||
if ((p->iterate) (hook))
|
||||
if (p->iterate && (p->iterate) (hook))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue