Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157432482
D19438.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D19438.diff
View Options
Index: head/sys/geom/part/g_part_gpt.c
===================================================================
--- head/sys/geom/part/g_part_gpt.c
+++ head/sys/geom/part/g_part_gpt.c
@@ -990,10 +990,9 @@
basetable->gpt_first = table->hdr->hdr_lba_start;
basetable->gpt_last = table->hdr->hdr_lba_end;
- basetable->gpt_entries = (table->hdr->hdr_lba_start - 2) *
- pp->sectorsize / table->hdr->hdr_entsz;
+ basetable->gpt_entries = table->hdr->hdr_entries;
- for (index = table->hdr->hdr_entries - 1; index >= 0; index--) {
+ for (index = basetable->gpt_entries - 1; index >= 0; index--) {
if (EQUUID(&tbl[index].ent_type, &gpt_uuid_unused))
continue;
entry = (struct g_part_gpt_entry *)g_part_new_entry(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 9:55 AM (18 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33418376
Default Alt Text
D19438.diff (722 B)
Attached To
Mode
D19438: Revert revision 254095
Attached
Detach File
Event Timeline
Log In to Comment