I say the first approach is simple just because I have handled appending
contents to the file in my filter.So,it’s simple to me.~~^_^
Yes,the second approach should be very simple.I 'm wrong~.Some the third
party FS don’t support FileID in my memo,maybe I make a mistake.
But,the FileID is just unique in the server FS,not unique in the world(all
Servers).That’s to say,in my RDR filter,I maybe get the same fileID from two
servers.So,what should I do?Analyze the server name or IP?
thanks for your help,Tony.Your suggestion is very helpful to me,oh,always~~~
“Tony Mason” ???:xxxxx@ntfsd…
The second approach is much easier to implement than the first - an
unrecognized FSCTL is sent from redirector (client) to the server.
Similarly the server sends an unrecognized FSCTL to the file system. If
your filter is there, you can then query for the file ID and return it
as the response to the FSCTL. Changing the contents of the file is more
difficult, but we’ve already done the work in the DMK, which is why I
even mentioned that technique.
I’m curious which Windows file system you’ve found that won’t return a
file ID for a file - I don’t know of one, although I’m always learning
of new interesting cases.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ecore
Sent: Saturday, April 29, 2006 9:29 PM
To: ntfsd redirect
Subject: Re:[ntfsd] How can I distinguish they are the same file?
en.embed a GUID within the file itself.This is a very simple and useful
ways.Thanks.
The second way,private FSCTL,there is a problem in it:How can the Server
sends the FileID to the client?You know,I can’t get the information
about
the client.It’s just the token.I think I (the server)can’t sends
messages to
the client.
And,some FS don’t support FileID.
“Tony Mason” ???:xxxxx@ntfsd…
This seems like it should be a simple problem but in fact is a very
difficult problem. In the OSR DMK the approach we’ve taken is to embed
a GUID within the file itself. Another technique we’ve used is to add a
filter on the server; from the client we send a private FSCTL. The
client redirector then sends that to the server and the server sends it
to the filter. We then extract the file ID (on the server) and send it
back.
The truly difficult problem here is that if you consider hard links,
there really is no way to associate two names together (even on local
system) but you can do it with the file ID - however redirector “makes
up” a value, which is why we had to tunnel across.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ecore
Sent: Saturday, April 29, 2006 10:42 AM
To: ntfsd redirect
Subject: [ntfsd] How can I distinguish they are the same file?
Assume that:
computer A is the server,and there are two shared folders in it.
\A\Share1<br>\A\Share2<br>And,in fact,share1 is the sub folder of the share2.So:
the following file is the same file:
\A\Share1\1.txt
\A\Share2\Share1\1.txt
In my RDR filter,when I meet the CreateFile for these files.I want to
distinguish they are the same file or not.
How can I get it?
In my observation,sometimes CreateFile for these two UNC,they will point
to
the same FCB.But sometimes not.
In my opinion,I can’t distinguish it.right?
Thanks for help.Thanks~~
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com