On 14:47, Steven Chamberlain wrote:
> ktrace revealed a openat64, stat64, close of each disk/partition
> without trying to read a ZFS disklabel from it.  It seemed to be taking
> an early exit from detection due to:
> 
>     if (statbuf.st_size < SPA_MINDEVSIZE) {
>         (void) close(fd);

That doesn't seem to trigger any bug on upstream FreeBSD 10.1-BETA2,
even though the stat st_size for a disk/partition device is 0...

Turns out that cddl/compat/opensolaris/sys/stat.h defines a special
fstat64 that additionally calls DIOCGMEDIASIZE if it is a character
device.  But on GNU/kFreeBSD we're calling the plain GNU libc fstat64.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to