Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148495230
D12847.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D12847.diff
View Options
Index: head/sys/boot/common/disk.c
===================================================================
--- head/sys/boot/common/disk.c
+++ head/sys/boot/common/disk.c
@@ -89,6 +89,12 @@
od = (struct open_disk *)dev->d_opendata;
/*
+ * The strategy function assumes the offset is in units of 512 byte
+ * sectors. For larger sector sizes, we need to adjust the offset to
+ * match the actual sector size.
+ */
+ offset *= (od->sectorsize / 512);
+ /*
* As the GPT backup partition is located at the end of the disk,
* to avoid reading past disk end, flag bcache not to use RA.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 6:19 AM (15 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29934075
Default Alt Text
D12847.diff (598 B)
Attached To
Mode
D12847: loader ptblread() is broken with >512B sectors
Attached
Detach File
Event Timeline
Log In to Comment