I am trying to do a READ_BUFFER/WRITE_BUFFER to a SATA driver. My app uses the SG_IO ioctl to do this. I assume that libata will perform the necessary translation into ATA commands. However, when I put a protocol analyzer, I dont see the READ_BUFFER/WRITE_BUFFER command at all.

I dont know how to debug this. Is there a way to turn on debugging in libata? I am not sure where the problem is..