This redefinition of a collectd-own function seems hackish. I suggest to implement a new function, *zfs_get_value()* that has different implementations for FreeBSD and SunOS.