NotifyChangeDirectory Hang for remote File System

I am working on minifilter having shadow file object. For IRP_MJDIRECTORY_CONTROL (NotifyChangeDirectory ) i am sending the request to lower FSD in preFunction, this is working fine for local File system but for remote File system this call is getting hanged and its postFuntion never gets invoked. Require some info on this …

The usual sort of things to look at are

  1. Does it work when you attach to local loopback (\localhost\c$)
  2. Does it work on SMB1/2/3?
  3. What happens if you run filespy on the remotehost? Do you see the IRPS?
  4. What does WireShark say?

None of these are answers to your question, but they might give you some
useful pointers.

Rod