Page MenuHomeFreeBSD

D12847.id34568.diff
No OneTemporary

D12847.id34568.diff

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

Mime Type
text/plain
Expires
Thu, Mar 19, 12:12 AM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29934075
Default Alt Text
D12847.id34568.diff (598 B)

Event Timeline