Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131718110
D12849.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
585 B
Referenced Files
None
Subscribers
None
D12849.diff
View Options
Index: head/sys/boot/efi/libefi/efipart.c
===================================================================
--- head/sys/boot/efi/libefi/efipart.c
+++ head/sys/boot/efi/libefi/efipart.c
@@ -877,7 +877,11 @@
bcd.dv_cache = pd->pd_bcache;
if (dev->d_dev->dv_type == DEVT_DISK) {
- return (bcache_strategy(&bcd, rw, blk + dev->d_offset,
+ daddr_t offset;
+
+ offset = dev->d_offset * pd->pd_blkio->Media->BlockSize;
+ offset /= 512;
+ return (bcache_strategy(&bcd, rw, blk + offset,
size, buf, rsize));
}
return (bcache_strategy(&bcd, rw, blk, size, buf, rsize));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 2:52 PM (19 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23581169
Default Alt Text
D12849.diff (585 B)
Attached To
Mode
D12849: efipart_strategy is using wrong offset with >512B sectors
Attached
Detach File
Event Timeline
Log In to Comment