+2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
+
2010-04-17 Christian Franke <franke@computer.org>
* Makefile.in: Add missing localedir setting.
#include <grub/misc.h>
#include <grub/lvm.h>
+#ifdef GRUB_UTIL
+#include <grub/util/misc.h>
+#endif
+
static struct grub_lvm_vg *vg_list;
static int lv_count;
if (lv->vg->pvs)
for (pv = lv->vg->pvs; pv; pv = pv->next)
{
+ if (!pv->disk)
+ grub_util_error ("Couldn't find PV %s. Check your device.map",
+ pv->name);
tmp = grub_malloc (sizeof (*tmp));
tmp->disk = pv->disk;
tmp->next = list;