hi, Jamey
I am sorry I have not said it clear. The image file has not been compressed yet.
Since the program works if the server is running on another machine, I do suspect it is because of network jam. I did as the following in my TDI client. Wish you can point out the flaw.
- Queue the read/write commands, process it in two threads.
- ClientEventReceive set a event to notify there is data available, then call TdiBuildReceive in the receive thread to receive the data.
I have tried another way. Copy the TSDU to internal buffer, and set byteTaken, return successful. Spinlock is used to synchronize between the ClientEventReceive and the receive thread. However, it is so inefficient.
What is the best efficient way to do this?
Thanks a lot.
paul
Paul,
The reason I asked about compression is that there is a deadlock that will
occur if the local file you are mounting to is on a compressed NTFS volume
and the file is compressed. The problem is that the compression engine
deadlocks. Since you are not compressing the host mage file this I not your
problem.
I am going to take this offline with you.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Paul Chen
Sent: Tuesday, October 19, 2004 1:08 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Fw: Copy Large file error in virtual network scsi disk
hi, Jamey
I am sorry I have not said it clear. The image file has not been compressed
yet.
Since the program works if the server is running on another machine, I do
suspect it is because of network jam. I did as the following in my TDI
client. Wish you can point out the flaw.
- Queue the read/write commands, process it in two threads.
- ClientEventReceive set a event to notify there is data available, then
call TdiBuildReceive in the receive thread to receive the data.
I have tried another way. Copy the TSDU to internal buffer, and set
byteTaken, return successful. Spinlock is used to synchronize between the
ClientEventReceive and the receive thread. However, it is so inefficient.
What is the best efficient way to do this?
Thanks a lot.
paul
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to $subst(‘List.Name’) as:
$subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to $subst(‘Email.UnSub’)
__________ NOD32 1.860 (20040903) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
> I have tried another way. Copy the TSDU to internal buffer,
and set byteTaken, return successful. Spinlock is used to
synchronize between the ClientEventReceive and the receive
thread. However, it is so inefficient.
This is how AFD works.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com