> "one size" that you can supply to the SG_IO command (unless you want to
ATAPI effectively requires you supply a stupidly large buffer. In theory
you set the transfer size in the lba registers and it all works. In
practice some drives ignore this and there isn't a nice reliable way to
clean up.
Old IDE tries to pio the extra out but that won't work on all controllers
so the wrong combination will still blow up on you.
Welcome to the wonderful world of IDE, where the spec sucks and the
drives manage to do even worse things.
We can try and clean up better in these cases at least for PIO transfers
by trying to drain the data beyond this point, on the controllers that
cope with this but really - fix the app to reflect reality: ATAPI is SCSI
as spoken by yokels
Alan
-