Redirect file operation through CIFS/SMB

Hi,

I’ve got to redirect the file operation on files in the specialized
directory( e.g C:\src ) to files of another directory( e.g D:\dest) using
filter

driver, and the driver works well when I perform any read/write operation
on the files of the specialized dir.

However, when I use a client PC to access the files on the server with my
filter driver installed through CIFS/SMB share folder, it works

well at the beginning.However, after about one or half a hour, the
connection is lost and I can’t connect to the server any more(I can

get to the server by pinging it), until the server is rebooted.

In my filter driver, I use IoCreateFileSpecify*** function to get the handle
of a file in dispatch create, and then use ZwReadFile to read

the contents of the file. I’m wondering if these operations might be the
cause of the problem above, would anybody please help me

to solve this emergency!

Thanks to all!

Xiong Weiwei ha scritto:
I-m not really an expert, have you checked the state of the SMB/CIFS server?
Probably a wrong behaviour make the process crash or hangs it, and not
the machine.
I think you can reproduce this error even on other user processes.
If the problem is hard to debug, i recommend to install a checked build
and check if something goes wrong.