Scan mdraid before LVM.
* include/grub/diskfilter.h (grub_diskfilter_register): Renamed to .. (grub_diskfilter_register_front): ... this. (grub_diskfilter_register_back): New function. All users of grub_diskfilter_register updated.
This commit is contained in:
parent
33d918b85f
commit
b72d44a11a
7 changed files with 25 additions and 6 deletions
|
@ -148,11 +148,21 @@ typedef struct grub_diskfilter *grub_diskfilter_t;
|
|||
|
||||
extern grub_diskfilter_t grub_diskfilter_list;
|
||||
static inline void
|
||||
grub_diskfilter_register (grub_diskfilter_t diskfilter)
|
||||
grub_diskfilter_register_front (grub_diskfilter_t diskfilter)
|
||||
{
|
||||
grub_list_push (GRUB_AS_LIST_P (&grub_diskfilter_list),
|
||||
GRUB_AS_LIST (diskfilter));
|
||||
}
|
||||
|
||||
static inline void
|
||||
grub_diskfilter_register_back (grub_diskfilter_t diskfilter)
|
||||
{
|
||||
grub_diskfilter_t p, *q;
|
||||
for (q = &grub_diskfilter_list, p = *q; p; q = &p->next, p = *q);
|
||||
diskfilter->next = NULL;
|
||||
diskfilter->prev = q;
|
||||
*q = diskfilter;
|
||||
}
|
||||
static inline void
|
||||
grub_diskfilter_unregister (grub_diskfilter_t diskfilter)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue