Monitor Disk write calls

Hi,

I need to develop driver to Notification System disk write calls, so that I can replicate write contents to other disk. (Both disks are of type RAID)

I have searched regarding it, also checked with some samples with WinDDK (DiskPerf and other)
I am not sure with my approach, but I think I need to insert/attach my driver in between Port and Disk.sys

Any guidance will be really appreciated.

Thanks,
Sachin

Yes, you need a filter under FDO created by disk.sys if “disks” are hardware RAIDs and the replication is performed at the disk sector level.

you need an upper disk class filter driver as slava said. need to make an entry in inf and you are done. using devcon you can see the entry.

Thanks all for prompt replies.
I have also checked few other OSR queries,
http://osronline.com/showThread.CFM?link=217367
http://w.osronline.com/showthread.cfm?link=238682

I have one more query, can I insert my driver as upper filter to Storport, instead filter to disk.sys, so that my driver can expose “FILE_DEVICE_MASS_STORAGE” type devices,
intention is to expose only primary disk, not replication disk.

File System Driver
|
Volume Manager Disk Driver
|
Disk Driver (disk.sys )
|
Mydriver.sys
|
Disk Port Driver
|
Disk Miniport Driver
|
HDD

it would really helpful if any references, or DDK samples.

Thanks,
Sachin

You really want the replication disk exposed to Windows as a standard disk.
That way YOU can talk to it with reads/writes for the purposes of
replication. You really don’t want to provide your own disk driver.

Having the disk casually visible to the admin is annoying though. You can
hide it with IOCTL_DISK_SET_DISK_ATTRIBUTES, though annoyingly the attribute
does not persist across reboots. How bad this is for you depends, but if you
can live with it it’s a simple solution.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntfsd…

Thanks all for prompt replies.
I have also checked few other OSR queries,
http://osronline.com/showThread.CFM?link=217367
http://w.osronline.com/showthread.cfm?link=238682

I have one more query, can I insert my driver as upper filter to Storport,
instead filter to disk.sys, so that my driver can expose
“FILE_DEVICE_MASS_STORAGE” type devices,
intention is to expose only primary disk, not replication disk.

File System Driver
|
Volume Manager Disk Driver
|
Disk Driver (disk.sys )
|
Mydriver.sys
|
Disk Port Driver
|
Disk Miniport Driver
|
HDD

it would really helpful if any references, or DDK samples.

Thanks,
Sachin

Thanks Scott, I will check.