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:
parent
9277a306a7
commit
49818a594a
4 changed files with 89 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue