Fix missing PVs if they don't contain "interesting" LV. Closes #38677.

Fix few warining messages and leaks while on it.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-11 00:08:27 +02:00
parent 9277a306a7
commit 49818a594a
4 changed files with 89 additions and 11 deletions

View file

@ -199,16 +199,8 @@ scan_disk (const char *name, int accept_diskfilter)
scan_depth--;
return 0;
}
if (scan_disk_partition_iter (disk, 0, (void *) name))
{
scan_depth--;
return 1;
}
if (grub_partition_iterate (disk, scan_disk_partition_iter, (void *) name))
{
scan_depth--;
return 1;
}
scan_disk_partition_iter (disk, 0, (void *) name);
grub_partition_iterate (disk, scan_disk_partition_iter, (void *) name);
grub_disk_close (disk);
scan_depth--;
return 0;