Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150050588
D6787.id17463.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
993 B
Referenced Files
None
Subscribers
None
D6787.id17463.diff
View Options
Index: sys/boot/efi/libefi/efipart.c
===================================================================
--- sys/boot/efi/libefi/efipart.c
+++ sys/boot/efi/libefi/efipart.c
@@ -82,7 +82,7 @@
EFI_HANDLE *hin, *hout, *aliases, handle;
EFI_STATUS status;
UINTN sz;
- u_int n, nin, nout;
+ u_int n, nin, nout, nrdisk;
int err;
sz = 0;
@@ -103,6 +103,7 @@
hout = hin + nin;
aliases = hout + nin;
nout = 0;
+ nrdisk = 0;
bzero(aliases, nin * sizeof(EFI_HANDLE));
pdinfo = malloc(nin * sizeof(*pdinfo));
@@ -120,8 +121,7 @@
if (EFI_ERROR(status))
continue;
if (!blkio->Media->LogicalPartition) {
- printf("%s%d isn't a logical partition, skipping\n",
- efipart_dev.dv_name, n);
+ nrdisk++;
continue;
}
@@ -156,6 +156,9 @@
bcache_add_dev(npdinfo);
err = efi_register_handles(&efipart_dev, hout, aliases, nout);
free(hin);
+
+ if (nout == 0 && nrdisk > 0)
+ printf("Found %d disk(s) but no logical partition\n", nrdisk);
return (err);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 12:24 AM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30557676
Default Alt Text
D6787.id17463.diff (993 B)
Attached To
Mode
D6787: libefi warn when disks are found but without logical partition
Attached
Detach File
Event Timeline
Log In to Comment