Page MenuHomeFreeBSD

D15839.id43861.diff
No OneTemporary

D15839.id43861.diff

Index: head/stand/i386/libi386/biosdisk.c
===================================================================
--- head/stand/i386/libi386/biosdisk.c
+++ head/stand/i386/libi386/biosdisk.c
@@ -594,8 +594,8 @@
*rsize = 0;
/* Get disk blocks, this value is either for whole disk or for partition */
- if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks)) {
- /* DIOCGMEDIASIZE does return bytes. */
+ if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) {
+ /* DIOCGMEDIASIZE returns bytes. */
disk_blocks /= BD(dev).bd_sectorsize;
} else {
/* We should not get here. Just try to survive. */

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 20, 10:11 AM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36989029
Default Alt Text
D15839.id43861.diff (620 B)

Event Timeline