On Mon, Mar 16, 2009 at 12:30:33PM -0700, Brian wrote: > Somwhere in an 'zfs_ioctl' my code failing. I'm trying to implement my own > RAID algorithm and have absolutely no kernel programming experience. ha. I > have only made changes in zpool_vdev.c where it determines what > RAID_TYPE_CONFIG it is. Of course, this isn't the only place that needs to be > modified. > > My code makes a zfs_ioctl() and then fails with a '22' errno (Invalid > device). I have no kernel programming experience and it's not jumping out at > me in user space where it hosed up. > > Any advice/tips would be appreciated. Especially kernel tracing/debuging > advice.
You can take a look at my patch, where I was prototyping RAID5/RAID6 support to compare performance with RAIDZ1/RAIDZ2. This is far from beeing finished, but creating pools with raid5/raid6 vdevs should work. The patch is also against some old version of ZFS, but might be a good starting point for you: http://people.freebsd.org/~pjd/patches/vdev_raid5.patch Good luck. -- Pawel Jakub Dawidek http://www.wheel.pl pjd at FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20090317/d8d4b902/attachment.bin>