Pending I/O Read/Write request in Disk Filter?

Hi all,
i want to write a disk upper filter driver that will not serve any I/O
Read/Write requests untill several condition has been meet (for example, a
special IOCtrl has been received in the filer driver).
Should i completed the request with IoCompleteRequest and return PENDING
status? if not with what status code should i return?

thanks!

If you are going to pend it, call IoMarkIrpPending and return STATUS_PENDING, do not complete it (or send it down the stack) until your condition is met. Be careful not to do this for paging io.

d

sent from a phpne with no keynoard


From: jonatan perry
Sent: May 16, 2010 12:23 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Pending I/O Read/Write request in Disk Filter?

Hi all,
i want to write a disk upper filter driver that will not serve any I/O Read/Write requests untill several condition has been meet (for example, a special IOCtrl has been received in the filer driver).
Should i completed the request with IoCompleteRequest and return PENDING status? if not with what status code should i return?

thanks!
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

No, return the pending status without completing the request.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“jonatan perry” wrote in message news:xxxxx@ntdev…
Hi all,
i want to write a disk upper filter driver that will not serve any I/O Read/Write requests untill several condition has been meet (for example, a special IOCtrl has been received in the filer driver).
Should i completed the request with IoCompleteRequest and return PENDING status? if not with what status code should i return?

thanks!