Re: Snoop DVD (MMC/ATAPI/SCSI) requests

2006-10-04 Thread Peter Astrand
On Mon, 21 Aug 2006, Jens Axboe wrote:

> > Hi. I'm running Windows as a Guest OS in VMware on Linux. In Windows, a
> > closed source application communicates with my DVD writer using VMwares
> > virtual DVD, connected to /dev/hdc, which is my DVD writer.
> > 
> > Now, I'd like to monitor all communication with my DVD. I found out about
> > blktrace and it looked very promising. However, I've now discovered that
> > blktrace cannot display all data, for example Inquiry Data. This is also
> > pointed out by http://lkml.org/lkml/2005/8/23/70:
> > 
> > "the cdb is dumped, not the data"
> > 
> > So, are there any other tools that I can use to snoop the DVD
> > communication? I've tried strace without luck.
> 
> How much data do you need to dump? If it's just inquiry data and small
> things like that, I'd just snoop the data in the kernel with some debug
> patch and dump it with printk(). Otherwise it would not be hard to add
> data dump to blktrace as well.

I need all data required to repeat the SCSI communication patterns, and 
hopefully figure out what's going on. At this point, I would prefer a 
solution that doesn't require kernel hacking. 

Since my mail, I've figured out that Wireshark has a very nice iSCSI 
dissector. If possible, I'd like to use it. All my real iSCSI attempts 
have failed (IET lacks DVD support and VMware cannot work on top of Linux 
iSCSI DVD devices), so my current plan is to write a program that 
translates usbfs_snoop output into Wireshark capture files with "faked" 
iSCSI calls.

Regards, 
-- 
/Peter ???strand <[EMAIL PROTECTED]>

Re: Snoop DVD (MMC/ATAPI/SCSI) requests

2006-09-28 Thread Andy Polyakov

Hi. I'm running Windows as a Guest OS in VMware on Linux. In Windows, a
closed source application communicates with my DVD writer using VMwares
virtual DVD, connected to /dev/hdc, which is my DVD writer.

Now, I'd like to monitor all communication with my DVD. I found out about
blktrace and it looked very promising. However, I've now discovered that
blktrace cannot display all data, for example Inquiry Data. This is also
pointed out by http://lkml.org/lkml/2005/8/23/70:

"the cdb is dumped, not the data"

So, are there any other tools that I can use to snoop the DVD
communication? I've tried strace without luck.


In VMware case you can tailor 
http://fy.chalmers.se/~appro/LD_*-gallery/index.html?sgio#sgio for very 
particular purpose:-) A.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Snoop DVD (MMC/ATAPI/SCSI) requests

2006-08-21 Thread Jens Axboe
On Sat, Aug 19 2006, Peter ?strand wrote:
> 
> Hi. I'm running Windows as a Guest OS in VMware on Linux. In Windows, a
> closed source application communicates with my DVD writer using VMwares
> virtual DVD, connected to /dev/hdc, which is my DVD writer.
> 
> Now, I'd like to monitor all communication with my DVD. I found out about
> blktrace and it looked very promising. However, I've now discovered that
> blktrace cannot display all data, for example Inquiry Data. This is also
> pointed out by http://lkml.org/lkml/2005/8/23/70:
> 
> "the cdb is dumped, not the data"
> 
> So, are there any other tools that I can use to snoop the DVD
> communication? I've tried strace without luck.

How much data do you need to dump? If it's just inquiry data and small
things like that, I'd just snoop the data in the kernel with some debug
patch and dump it with printk(). Otherwise it would not be hard to add
data dump to blktrace as well.

-- 
Jens Axboe


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Snoop DVD (MMC/ATAPI/SCSI) requests

2006-08-19 Thread Peter �strand

Hi. I'm running Windows as a Guest OS in VMware on Linux. In Windows, a
closed source application communicates with my DVD writer using VMwares
virtual DVD, connected to /dev/hdc, which is my DVD writer.

Now, I'd like to monitor all communication with my DVD. I found out about
blktrace and it looked very promising. However, I've now discovered that
blktrace cannot display all data, for example Inquiry Data. This is also
pointed out by http://lkml.org/lkml/2005/8/23/70:

"the cdb is dumped, not the data"

So, are there any other tools that I can use to snoop the DVD
communication? I've tried strace without luck.

/Peter �strand <[EMAIL PROTECTED]>