How to implement copy-on-write?

Hi
I’m trying to implement copy-on-write for the volume using filter driver.
I want to create a read irp according to the write irp,then dispatch my read irp.The write irp will be suspended until the read irp completed.Can I use one filter driver to do this?Any sugestion ?
Thank you!

You can implement this with a volume filter driver.

~Sisimon

On 4/1/07, xxxxx@yahoo.com.cn wrote:
>
> Hi
> I’m trying to implement copy-on-write for the volume using filter
> driver.
> I want to create a read irp according to the write irp,then dispatch my
> read irp.The write irp will be suspended until the read irp completed.CanI use one filter driver to do this?Any sugestion ?
> Thank you!
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


GCS d+ s: a- c++++ U> B+ L++>$ w++++$ W++(+++) PGP+N+ t PS+PE++ tv+(++) b+++
G+++ e++>(++++) h-- r
Don’t know this? See http://www.geekcode.com/geek.html

Thanks Sisimon~
Yes I’m trying to write a volume filter driver.But I don’t know how to handle the read IRP I created according to the write IRP.I want the write IRP wait until my read IRP completed.Could I use the device queue or what to do this?
After I got the origin data,should I send it back to the user mode application to save them in file or just write them to disk directly?
I’m a newbie in the driver development…so I’m so confused…

Sisimon E S дµÀ£º
You can implement this with a volume filter driver.

~Sisimon

On 4/1/07, xxxxx@yahoo.com.cn < xxxxx@yahoo.com.cn> wrote: Hi
I’m trying to implement copy-on-write for the volume using filter driver.
I want to create a read irp according to the write irp,then dispatch my read irp.The write irp will be suspended until the read irp completed.Can I use one filter driver to do this?Any sugestion ?
Thank you!


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


GCS d+ s: a- c++++ U> B+ L++>$ w++++$ W++(+++) PGP+N+ t PS+PE++ tv+(++) b+++ G+++ e++>(++++) h-- r
Don’t know this? See http://www.geekcode.com/geek.html — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ