Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103810894
D36490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
D36490.diff
View Options
diff --git a/stand/i386/libi386/biosdisk.c b/stand/i386/libi386/biosdisk.c
--- a/stand/i386/libi386/biosdisk.c
+++ b/stand/i386/libi386/biosdisk.c
@@ -1032,7 +1032,8 @@
d_offset = dev->d_offset;
}
if (disk_blocks == 0)
- disk_blocks = bd->bd_sectors - d_offset;
+ disk_blocks = bd->bd_sectors * (bd->bd_sectorsize /
+ BIOSDISK_SECSIZE) - d_offset;
/* Validate source block address. */
if (dblk < d_offset || dblk >= d_offset + disk_blocks)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 6:05 PM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14948131
Default Alt Text
D36490.diff (461 B)
Attached To
Mode
D36490: stand: i386: take into account disk sector size for blk calculation
Attached
Detach File
Event Timeline
Log In to Comment