a strange RENAME problem for remote files

My case is a little bit complicated. I have a minifilter driver that links a
local stub directory (a reparse point) to a remote shared directory on
another machine. When the stub directory is accessed, all requests will be
redirected to its target directory on another machine. It seems everything
is working fine except the following rename case.

I have three computers: M-A, M-B and M-C. The minifilter is installed on
M-B. I created a stub directory C:\share1\lnk on M-B, which points to
\M-C\share1. The directory C:\share1 on M-B is also shared as \M-B\share1.
Now I create a mapped drive F: on M-A for \M-B\share1. From M-A, I can
create, change or delete any files and directories on F:\lnk (\M-C\share1)
without problem. From M-A, if I rename a file abc.txt on F:\lnk\dir1
(\M-C\share1\dir1) to xyz.txt on the same directory, the renamed file is
always saved to its parent directory F:\lnk (\M-C\share1) as F:\lnk\xyz.txt
(\M-C\share1\xyz.txt). If the rename operation takes place on M-B,
everything is fine. If C:\share1\lnk points to another directory on the same
machine, the rename from M-A works just fine too.

Probably the problem is caused by a network redirector drive on M-B. But I
don’t how it is caused. May some expert provide me any information about
what I am missing or doing wrong.

Regards,

Shangwu

I think this problem is caused by a defect of SRV. It does not handle well
when a rename operation is involved with STATUS_REPARSE. I don’t know how to
report this to Microsoft. Please advise.

Thanks in advance,
Shangwu

“Shangwu” wrote in message news:xxxxx@ntfsd…
> My case is a little bit complicated. I have a minifilter driver that links
> a local stub directory (a reparse point) to a remote shared directory on
> another machine. When the stub directory is accessed, all requests will be
> redirected to its target directory on another machine. It seems everything
> is working fine except the following rename case.
>
> I have three computers: M-A, M-B and M-C. The minifilter is installed on
> M-B. I created a stub directory C:\share1\lnk on M-B, which points to
> \M-C\share1. The directory C:\share1 on M-B is also shared as
> \M-B\share1. Now I create a mapped drive F: on M-A for \M-B\share1. From
> M-A, I can create, change or delete any files and directories on F:\lnk
> (\M-C\share1) without problem. From M-A, if I rename a file abc.txt on
> F:\lnk\dir1 (\M-C\share1\dir1) to xyz.txt on the same directory, the
> renamed file is always saved to its parent directory F:\lnk (\M-C\share1)
> as F:\lnk\xyz.txt (\M-C\share1\xyz.txt). If the rename operation takes
> place on M-B, everything is fine. If C:\share1\lnk points to another
> directory on the same machine, the rename from M-A works just fine too.
>
> Probably the problem is caused by a network redirector drive on M-B. But I
> don’t how it is caused. May some expert provide me any information about
> what I am missing or doing wrong.
>
> Regards,
>
> Shangwu
>
>
>
>