Thanks to the generous help from this list, I now have a kernel SCSI sg driver patch which provides for binary compatibility of 32 bit x86 applications on AMD64 kernels, when using struct sg_io_hdr with write()/read() (the ioctl() method already worked).
The preliminary version is here (it still has some development fluff in it): http://volker.dnsalias.net/soft/patch/kernel-2.6.13-sg-io32.diff I'll submit it to the maintainer too. Thanks again, Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
