2009/9/2 谢纲 <xiegang112@xxxxxxxxx>: > On Tue, Sep 1, 2009 at 6:40 PM, 谢纲<xiegang112@xxxxxxxxx> wrote: >> On Tue, Sep 1, 2009 at 2:13 PM, Jonathan Nell<crtrn13@xxxxxxxxx> wrote: >>> Is there any way to sniff the traffic of a scsi device? I need to >>> debug a firmware update and need to see the traffic being passed to >>> the drive >> You may hook the queue_command function of the scsi host. It can sniff >> all scsi request to scsi host driver. >> Thanks, > > I developed a tool to dump all the SCSI cmds to SCSI device. The idea > is, every SCSI host controller driver should give the queue_command > fucntion. This is the entrance for SCSI request to SCSI host > controller driver. I replace this function with my own dump methord > and after dump, I restore this function. > > I do't know if it's what you need. That would be great! Could you send the code to me? How does your tool hook into queue_command? -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html