Andrej,
I am glad you got your problem solved.
It is imperative that you have one GUID per TAG. The idea of the GUID
was to give Microsoft the flexibility to assign duplicate tags in the
future but still allow a filter to uniquely identify their own reparse
points via the GUID.
All filters using their own reparse point should match both the TAG and
the GUID.
I have filed a bug to have the documentation clarified on this issue.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrej Mlinar
Groznik
Sent: Monday, June 21, 2004 10:58 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Writing reparse points
Thanks for your answer. I already solved the problem with
FSCTL_SET_REPARSE_POINT.
I was telling to DeviceIoControl that I was passing a buffer of size x+y
when inside the structure the data described the size as x.
The size you pass to ioctl has to be exactly
REPARSE_GUID_DATA_BUFFER_HEADER_SIZE +
pReparseDataBuffer->ReparseDataLength
(not more, not less) otherwise it will complain.
I was passing a bigger buffer to play it safe but it unexpectedly
backfired.
About the GUID: I was using a different GUID for each file. The
documentation is misleading about this. I will sort things out in my
code.
Thanks again,
Andrej
-----Original Message-----
From: Neal Christiansen [mailto:xxxxx@windows.microsoft.com]
Sent: Monday, June 21, 2004 7:53 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Writing reparse points
Andrej,
You should use the same GUID with all reparse points that have the same
TAG. You should use the “guidgen” tool (comes with the IFSKit) to
generate a GUID to use.
It is not necessary to have your filter installed to set a reparse
point.
It is probably failing because your reparse point is syntactically
wrong. Please post a hex dump (“dc” from debugger) of the actual
reparse point data you are trying to set, I should be able to see what
is wrong.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrej Mlinar
Groznik
Sent: Monday, June 21, 2004 4:06 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Writing reparse points
Thanks a lot for you answer. I didn’t help directly thou, but gave me
enough
confidence to keep trying. After another day of tweaking this and that I
accidentally tried to pass to ioctl a buffer that is just as big as the
reported size of the structure (head + data)… then it worked!!! The
buffer
size passed to the ioctl has to be exactly header + header->datasize or
otherwise you will get an invalid data error…
These things are (sadly) also part of the job 
Thanks again.
Andrej
-----Original Message-----
From: Rob Green [mailto:xxxxx@cdp.com]
Sent: Sunday, June 20, 2004 5:41 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Writing reparse points
Yes. I just verified the posted code created stubs on a machine that
doesn’t have my driver installed. Accessing the stub does generate an
error
like it should. I haven’t tested the code with directories so I don’t
know
how that will work. This is setting a custom reparse point, not a
junction
point or mount point which are different.
Thanks,
Rob
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-178798-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmxpro.net
Sent: Sunday, June 20, 2004 4:58 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Writing reparse points
Hi Rob,
does it mean you managed to set a reparse point on a file (not a
directoy!)
and it worked? I tried this for months and could not get it work.
Cheers,
Oliver
> Here is how I do it. I believe I had this working before the driver
so
it
> should work for you also.
>
> Note 1: tMyReparse is what ever data you want to store into the
reparse
> point
> Note 2: tMyReparse must be less than 64k-16
> Note 3: Guid is a unique guid. The docs aren’t clear on how it is
set,
> but
> I have been using it as a unique id per file, but its only for a non
> release
> test driver. I believe it is suppose to be unique for this driver
as a
> double check that it is your data. Maybe someone else can clear
that
up.
–
May the source be with you, stranger … 
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@cdp.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@hermes.si
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@windows.microsoft.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@hermes.si
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@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com