Hi,
Wen I am debugging my SCSI driver in Win2000, a “Delayed Write” error occurs
from time to time. According to MSDN, it is because “the system was
attempting to transfer file data from buffers to .”. What is
the solution to this problem?
Thanks
James
Typically this means that the TimeoutValue in the SRB has been exceeded.
You debugging your miniport is adding significant delay and causing our
friend SCSIPORT to give up hope of ever getting a response. One solution
would be to debug faster! Another possibility is to create a debug class
driver that overrides the timeout value to a minimum value. Also, the
registry can be modified for extending timeouts, which is checked by the
disk class driver:
HKLM\system\currentcontrolset\services\disk\TimeOutValue:REG_DWORD
Specified in number of seconds.
Regards,
Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com
-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, July 19, 2000 6:47 PM
To: NT Developers Interest List
Subject: [ntdev] “Delayed Write”
Hi,
Wen I am debugging my SCSI driver in Win2000, a “Delayed Write” error occurs
from time to time. According to MSDN, it is because “the system was
attempting to transfer file data from buffers to .”. What is
the solution to this problem?
Thank you, Paul.
My driver is a port driver that handles USB to SCSI controller. I found the
problem in both free mode driver and checked mode driver. I checked the
registry key you pointed and the current (default) value is 0x28. I think
this value should be large enough for any device. I am afraid that something
else is wrong.
Regards
James
-----Original Message-----
From: Paul Bunn [mailto:xxxxx@ultrabac.com]
Sent: Thursday, July 20, 2000 9:53 AM
To: NT Developers Interest List
Subject: [ntdev] RE: “Delayed Write”
Typically this means that the TimeoutValue in the SRB has been exceeded.
You debugging your miniport is adding significant delay and causing our
friend SCSIPORT to give up hope of ever getting a response. One solution
would be to debug faster! Another possibility is to create a debug class
driver that overrides the timeout value to a minimum value. Also, the
registry can be modified for extending timeouts, which is checked by the
disk class driver:
HKLM\system\currentcontrolset\services\disk\TimeOutValue:REG_DWORD
Specified in number of seconds.
Regards,
Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com
-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, July 19, 2000 6:47 PM
To: NT Developers Interest List
Subject: [ntdev] “Delayed Write”
Hi,
Wen I am debugging my SCSI driver in Win2000, a “Delayed Write” error occurs
from time to time. According to MSDN, it is because “the system was
attempting to transfer file data from buffers to .”. What is
the solution to this problem?
—
You are currently subscribed to ntdev as: xxxxx@asia.adaptec.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
Data that a filesystem previously wrote to cache is now being committed
to physical media. If the write IRP to the disk driver fails repeatedly,
this dialog is displayed. This leads to file and/or filesystem
corruption.
Ultimately, the disk driver has to satisfy its I/O IRPs by sending SRBs
to the SCSI port driver. So, your driver is likely failing SRBs for
SCSI write commands. If there is a true hardware error, there is nothing
you can do; but consider the possibility that your driver is faulty.
Failure to complete an SRB can lead to behavior like this as well: after
the SRB timeout period (specified by the disk class driver) elapses,
SCSIPORT will return it to the class driver as failed.
Dave Cox
Hewlett-Packard Co.
HPSO/SSMO (Santa Barbara)
https://ecardfile.com/id/Dave+Cox
-----Original Message-----
From: Zhou, James [mailto:xxxxx@asia.adaptec.com]
Sent: Wednesday, July 19, 2000 6:47 PM
To: NT Developers Interest List
Subject: [ntdev] “Delayed Write”
Hi,
Wen I am debugging my SCSI driver in Win2000, a “Delayed Write” error occurs
from time to time. According to MSDN, it is because “the system was
attempting to transfer file data from buffers to .”. What is
the solution to this problem?
Thanks
James
—
You are currently subscribed to ntdev as: david_cox2@hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)