* grub-core/disk/lvm.c (do_lvm_scan): Likewise.
+2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/disk/raid.c (scan_devices): Check partition.
+ * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
+
2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
Support BFS (befs) UUID.
#include <grub/err.h>
#include <grub/misc.h>
#include <grub/lvm.h>
+#include <grub/partition.h>
#ifdef GRUB_UTIL
#include <grub/emu/misc.h>
for (vg = vg_list; vg; vg = vg->next)
for (pv = vg->pvs; pv; pv = pv->next)
if (pv->disk && pv->disk->id == disk->id
- && pv->disk->dev->id == disk->dev->id)
+ && pv->disk->dev->id == disk->dev->id
+ && grub_partition_get_start (pv->disk->partition)
+ == grub_partition_get_start (disk->partition)
+ && grub_partition_get_len (pv->disk->partition)
+ == grub_partition_get_len (disk->partition))
{
grub_disk_close (disk);
return 0;
#include <grub/err.h>
#include <grub/misc.h>
#include <grub/raid.h>
+#include <grub/partition.h>
#ifdef GRUB_UTIL
#include <grub/util/misc.h>
#endif
struct grub_raid_member *m;
for (m = arr->members; m < arr->members + arr->nr_devs; m++)
if (m->device && m->device->id == disk->id
- && m->device->dev->id == m->device->dev->id)
+ && m->device->dev->id == m->device->dev->id
+ && grub_partition_get_start (m->device->partition)
+ == grub_partition_get_start (disk->partition)
+ && grub_partition_get_len (m->device->partition)
+ == grub_partition_get_len (disk->partition))
{
grub_disk_close (disk);
return 0;