Thanks for reporting that, I forgot that the code defaulted SEEK_HOLE but not SEEK_DATA. The first attached patch should fix it. The second one should improve performance further on Solaris for files that end in holes.