Is there anyway to find out that the FO is against hardlink or not?
Thanks
Ramaraj
Is there anyway to find out that the FO is against hardlink or not?
Thanks
Ramaraj
Ramaraj,
you wrote on Monday, September 29, 2003, 22:53:39:
RP> Is there anyway to find out that the FO is against hardlink or not?
Get at FILE_STANDARD_INFORMATION for the FO. If NumberOfLinks > 1, it’s
a hard linked file.
But that is per file info right. Is it not going to give NumberOfLinks > 1
for all FO of that file?.
But I want to know whether the particular FO is against hardlink or not.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ralf Buschmann
Sent: Monday, September 29, 2003 2:09 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Re: Hard Links
Ramaraj,
you wrote on Monday, September 29, 2003, 22:53:39:
RP> Is there anyway to find out that the FO is against hardlink or not?
Get at FILE_STANDARD_INFORMATION for the FO. If NumberOfLinks > 1, it’s
a hard linked file.
You are currently subscribed to ntfsd as: xxxxx@vormetric.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Ramaraj,
you wrote on Monday, September 29, 2003, 23:22:42:
RP> But that is per file info right. Is it not going to give NumberOfLinks > 1
RP> for all FO of that file?.
Yes.
RP> But I want to know whether the particular FO is against hardlink or not.
There is no such thing like a “hard link” and a “hard link target” (like
for shell shortcuts or reparse points). It’s just that there are
multiple directory entries pointing to the same file. You can refer to
FILE_INTERNAL_INFORMATION to find the hard linked file by IndexNumber.
Hard linked files share the same IndexNumber.
RP> -----Original Message-----
RP> From: xxxxx@lists.osr.com
RP> [mailto:xxxxx@lists.osr.com]On Behalf Of Ralf Buschmann
RP> Sent: Monday, September 29, 2003 2:09 PM
RP> To: Windows File Systems Devs Interest List
RP> Subject: [ntfsd] Re: Hard Links
RP> Ramaraj,
RP> you wrote on Monday, September 29, 2003, 22:53:39:
RP>> Is there anyway to find out that the FO is against hardlink or not?
RP> Get at FILE_STANDARD_INFORMATION for the FO. If NumberOfLinks > 1, it’s
RP> a hard linked file.
Thanks Ralf.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ralf Buschmann
Sent: Monday, September 29, 2003 2:50 PM
To: Windows File Systems Devs Interest List
Cc: Windows File Systems Devs Interest List
Subject: [ntfsd] Re: Hard Links
Ramaraj,
you wrote on Monday, September 29, 2003, 23:22:42:
RP> But that is per file info right. Is it not going to give NumberOfLinks
1
RP> for all FO of that file?.
Yes.
RP> But I want to know whether the particular FO is against hardlink or not.
There is no such thing like a “hard link” and a “hard link target” (like
for shell shortcuts or reparse points). It’s just that there are
multiple directory entries pointing to the same file. You can refer to
FILE_INTERNAL_INFORMATION to find the hard linked file by IndexNumber.
Hard linked files share the same IndexNumber.
RP> -----Original Message-----
RP> From: xxxxx@lists.osr.com
RP> [mailto:xxxxx@lists.osr.com]On Behalf Of Ralf Buschmann
RP> Sent: Monday, September 29, 2003 2:09 PM
RP> To: Windows File Systems Devs Interest List
RP> Subject: [ntfsd] Re: Hard Links
RP> Ramaraj,
RP> you wrote on Monday, September 29, 2003, 22:53:39:
RP>> Is there anyway to find out that the FO is against hardlink or not?
RP> Get at FILE_STANDARD_INFORMATION for the FO. If NumberOfLinks > 1, it’s
RP> a hard linked file.
You are currently subscribed to ntfsd as: xxxxx@vormetric.com
To unsubscribe send a blank email to xxxxx@lists.osr.com