Pawel - I've filed the following bugs, which should cover all but the cv_signal() patch (which I need to look at again):
6463348 ZFS code could be more portable 6463349 error message from zpool(1M) is missing a newline 6463350 getcomponent() has spurious and wrong check Thansk for the patches! Let us know about any other snags or bugs you hit during your work. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
