I have implemented a driver to emulate a scsi disk with a remote file.
There is one problem when I test it in the local machine.
When I copy a large file(>10M) from real partition D to the virtual disk partition, it will fail everytime.
The internal process is:
TDI Client sent write-request and buffer to be written to the local server, then waiting for the
the local server writes the buffer to the image file and sent status back. However, the write function(CFile::Write) takes a long time which is so abnormal. Until it is done,
the client has been timeout(10s). The bytes number to be written is almost 30K when it happened. I don’t know what the CPU is doing at that time, network jam in transport layer?
Surly server has received the 30K data, otherwise it cannot begin to write to the disk.
BTW, the program works if the server is running on the other machines.
Thanks for any advice.
paul
Are you using NTFS compression on the image file?
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Paul Chen
Sent: Sunday, October 17, 2004 7:17 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Copy Large file error in virtual network scsi disk
I have implemented a driver to emulate a scsi disk with a remote file.
There is one problem when I test it in the local machine.
When I copy a large file(>10M) from real partition D to the virtual disk
partition, it will fail everytime.
The internal process is:
TDI Client sent write-request and buffer to be written to the local server,
then waiting for the
the local server writes the buffer to the image file and sent status back.
However, the write function(CFile::Write) takes a long time which is so
abnormal. Until it is done,
the client has been timeout(10s). The bytes number to be written is almost
30K when it happened. I don’t know what the CPU is doing at that time,
network jam in transport layer?
Surly server has received the 30K data, otherwise it cannot begin to write
to the disk.
BTW, the program works if the server is running on the other machines.
Thanks for any advice.
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
hi, Jamey
No. It’s a binary file.
Thanks for your replication.
paul
What do you mean by: “it’s a binary file”? I 100% understand what you are
doing because I have done it many times before. Just because your image file
is binary does not mean that it can not be compressed via NTFS.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Paul Chen
Sent: Monday, October 18, 2004 1:56 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Copy Large file error in virtual network scsi disk
hi, Jamey
No. It’s a binary file.
Thanks for your replication.
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