>>> >>> 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? > The code could be found at > http://blog.chinaunix.net/u/15278/showart_1966962.html. You need do > some modification according your kernel. > It's very simple to hook the queue_command. I just backup the original > function pointer somewhere and after dump, I restore it. Pls refer the > code for detail. > This is great - thanks! I assume I can just modify this slightly to dump the data as well (and not just the cmd)? -- 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