FSCTL_SET_REPARSE_POINT Problem

Hi All,
I am currently struggling to get some code working which
will add a reparse point to a file so that my File System Filter can
identify the file. Whenever I call DeviceIoControl() I get the error “The
data present in the reparse point buffer is invalid”. I have tried
specifying a zero length buffer but I still get the same error.
Does anyone know what exactly that error means, or where I can go to
get sample code, which includes creating a reparse point? I already have the
IFS kit and that does not help.

Peter Richards

Hello Peter Richards,

What reparse tag are you using to create the reparse point. If you are using
IOCTL_REPARSE_TAG_MOUNT_POINT then it cannot be used with files.

There is a source code on sysinternal’s site which creates junction points.
http://www.sysinternals.com/ntw2k/source/misc.shtml#junction

Also once I had faced a problem while running the junction source code
because I was using an older version of Platform SDK. You might want to
check that.

thanks
-Kiran

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Richards
Sent: Friday, December 05, 2003 5:12 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FSCTL_SET_REPARSE_POINT Problem

Hi All,
I am currently struggling to get some code working which
will add a reparse point to a file so that my File System Filter can
identify the file. Whenever I call DeviceIoControl() I get the error “The
data present in the reparse point buffer is invalid”. I have tried
specifying a zero length buffer but I still get the same error.
Does anyone know what exactly that error means, or where I can go to
get sample code, which includes creating a reparse point? I already have the
IFS kit and that does not help.

Peter Richards


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@calsoftinc.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Kiran,
Thanks for the reply, in answer to your question I am trying to set
a reparse point on an existing file. The reparse point will store data,
which will be used to process the file’s contents inside a filter driver. I
am trying to use the REPARSE_GUID_DATA_BUFFER to set the reparse point on
the file.
Thanks for the link for the junction code, however this does not do
what I wanted as the code only creates a junction, as does not demonstrate
how to create a reparse point with user-defined data.

Peter Richards

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kiran Joshi
Sent: 05 December 2003 11:57
To: Windows File Systems Devs Interest List
Subject: [ntfsd] RE: FSCTL_SET_REPARSE_POINT Problem

Hello Peter Richards,

What reparse tag are you using to create the reparse point. If you are using
IOCTL_REPARSE_TAG_MOUNT_POINT then it cannot be used with files.

There is a source code on sysinternal’s site which creates junction points.
http://www.sysinternals.com/ntw2k/source/misc.shtml#junction

Also once I had faced a problem while running the junction source code
because I was using an older version of Platform SDK. You might want to
check that.

thanks
-Kiran

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Richards
Sent: Friday, December 05, 2003 5:12 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FSCTL_SET_REPARSE_POINT Problem

Hi All,
I am currently struggling to get some code working which
will add a reparse point to a file so that my File System Filter can
identify the file. Whenever I call DeviceIoControl() I get the error “The
data present in the reparse point buffer is invalid”. I have tried
specifying a zero length buffer but I still get the same error.
Does anyone know what exactly that error means, or where I can go to
get sample code, which includes creating a reparse point? I already have the
IFS kit and that does not help.

Peter Richards


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@calsoftinc.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@student.cs.york.ac.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com

Peter,

Just in case you are not aware of this, if you plan on releasing a
product that uses reparse points you need to obtain one from Microsoft.
The reason for this is that we would want to permanently allocate a
reparse point tag to you so that no one else would try and use it. You
can image what would happen if two different products which used the
same tag started trying to interoperate.

Aside from that, if you will privately send me what your reparse point
data looks like I will tell you what is wrong with it. I would like it
to be in memory dump format (as dd

).

I only need to see what is in the header, I do not need to see your
private data. Note that you should be using the
REPARSE_GUID_DATA_BUFFER for your header structure and you need a GUID
that is non-zero.

Neal Christiansen
Microsoft File System Filter Group

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 Peter Richards
Sent: Friday, December 05, 2003 6:35 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] RE: FSCTL_SET_REPARSE_POINT Problem

Kiran,
Thanks for the reply, in answer to your question I am trying to
set
a reparse point on an existing file. The reparse point will store data,
which will be used to process the file's contents inside a filter
driver. I
am trying to use the REPARSE_GUID_DATA_BUFFER to set the reparse point
on
the file.
Thanks for the link for the junction code, however this does not
do
what I wanted as the code only creates a junction, as does not
demonstrate
how to create a reparse point with user-defined data.

Peter Richards

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kiran Joshi
Sent: 05 December 2003 11:57
To: Windows File Systems Devs Interest List
Subject: [ntfsd] RE: FSCTL_SET_REPARSE_POINT Problem

Hello Peter Richards,

What reparse tag are you using to create the reparse point. If you are
using
IOCTL_REPARSE_TAG_MOUNT_POINT then it cannot be used with files.

There is a source code on sysinternal's site which creates junction
points.
http://www.sysinternals.com/ntw2k/source/misc.shtml#junction

Also once I had faced a problem while running the junction source code
because I was using an older version of Platform SDK. You might want to
check that.

thanks
-Kiran

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Richards
Sent: Friday, December 05, 2003 5:12 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FSCTL_SET_REPARSE_POINT Problem

Hi All,
I am currently struggling to get some code working which
will add a reparse point to a file so that my File System Filter can
identify the file. Whenever I call DeviceIoControl() I get the error
"The
data present in the reparse point buffer is invalid". I have tried
specifying a zero length buffer but I still get the same error.
Does anyone know what exactly that error means, or where I can
go to
get sample code, which includes creating a reparse point? I already have
the
IFS kit and that does not help.

Peter Richards

---
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@calsoftinc.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@student.cs.york.ac.uk
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