How is one supposed to tell different hard links for the same stream apart
in a mini-filter? They all have the same stream context and file-object
contexts are not supported yet (or have they been added without updating the
docs? {I ask hopefully.}).
Am I supposed to look at the FltObjects->FileObject->FileName used in the
create and then keep my own list of contexts that relate file objects to
names?
If a create comes in for one of several hard links, is there any way to know
that other hard links exist? If not then I am going to have to keep all the
file objects and all the names used to open them and this sort of makes the
FltMgr contexts redundant and useless.
P.S. Which of several possible hard links does FLT_FILE_NAME_NORMALIZED
consider “normal”?
“Mark Hahn” wrote in message news:xxxxx@ntfsd…
> How is one supposed to tell different hard links for the same stream apart
> in a mini-filter? They all have the same stream context and file-object
> contexts are not supported yet (or have they been added without updating
> the docs? {I ask hopefully.}).
>
> Am I supposed to look at the FltObjects->FileObject->FileName used in the
> create and then keep my own list of contexts that relate file objects to
> names?
>
> If a create comes in for one of several hard links, is there any way to
> know that other hard links exist? If not then I am going to have to keep
> all the file objects and all the names used to open them and this sort of
> makes the FltMgr contexts redundant and useless.
IRP_MJ_QUERY_INFORMATION
FileStandardInformation
NumberOfLinks > 1
>
> P.S. Which of several possible hard links does FLT_FILE_NAME_NORMALIZED
> consider “normal”?
>
>
There isn’t one normalized name for a file with hardlinks. Each
hardlink has its own normalized name.
Molly Brown
Microsoft Corporation
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 Lyndon J Clarke
Sent: Monday, April 25, 2005 1:09 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] FltMgr contexts and hard links
“Mark Hahn” wrote in message news:xxxxx@ntfsd…
> How is one supposed to tell different hard links for the same stream
> apart in a mini-filter? They all have the same stream context and
> file-object contexts are not supported yet (or have they been added
> without updating the docs? {I ask hopefully.}).
>
> Am I supposed to look at the FltObjects->FileObject->FileName used in
> the create and then keep my own list of contexts that relate file
> objects to names?
>
> If a create comes in for one of several hard links, is there any way
> to know that other hard links exist? If not then I am going to have
> to keep all the file objects and all the names used to open them and
> this sort of makes the FltMgr contexts redundant and useless.
IRP_MJ_QUERY_INFORMATION
FileStandardInformation
NumberOfLinks > 1
>
> P.S. Which of several possible hard links does
> FLT_FILE_NAME_NORMALIZED consider “normal”?
>
>
—
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