pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45512: net/aoe-vblade is unable to use block devices

>Number:         45512
>Category:       pkg
>Synopsis:       net/aoe-vblade is unable to use block devices
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 22 22:50:00 +0000 2011
>Originator:     Mihkel Ader
>Release:        NetBSD-current
NetBSD ubin 5.99.56 NetBSD 5.99.56 (MYGENERIC) #0: Thu Oct 20 19:07:41 UTC 2011 
 root@ubin:/usr/src/sys/arch/macppc/compile/MYGENERIC macppc

When trying to serve a block device using vblade(d), the disk size is reported 
as 0 and the AoE device cannot be used. Also, larger devices cause the disk 
size calculation to overflow.

The errors have also been reported to the aoetools-discuss mailing list
vblade 0 0 gem0 /dev/wd0c
There's a (de)referencing error in the freebsd.c file. The easiest fix is to 
write the ioctl call as "ioctl(fd, DIOCGDINFO, &lab)" instead of "ioctl(fd, 

In the same file, we need a cast to prevent an overflow:
"size = (vlong)lab.d_secsize * lab.d_secperunit"

Home | Main Index | Thread Index | Old Index