NTFS objectid - Shouldn't be unique for each file?

I hit upon a case where two files are getting tracked
thru the same object ids. My understanding is that
this is against the principle of object ids. Can
someone (NTFS team) confirm?

Basically I’m having a file with a object id and a
hardlink to it. When I delete the file, the objectid
starts tracking the hardlink, which is now the single
link to the file

When I recreate the file, the old object id tracks
this file too (bug?). Thus it seems to me that two
different files are now tracked thru the same object
ids.

Below are the steps to repro the issue, I have to add
that the same steps does not always lead to the issue.
I’m running XP Professional SP2.

C:\ossv\dataset\actual\temp>dir
Volume in drive C has no label.
Volume Serial Number is 644C-2B7B

Directory of C:\ossv\dataset\actual\temp

06/21/2006 03:38 PM

.
06/21/2006 03:38 PM ..
06/21/2006 03:41 PM d1
0 File(s) 0 bytes
3 Dir(s) 12,594,192,384 bytes free

C:\ossv\dataset\actual\temp>echo > f1

C:\ossv\dataset\actual\temp>fsutil objectid create f1
Object ID : a303763a59ffda11b4f60010c6d0b345
BirthVolume ID : a67ab85bf0b4fb48b899b4b26542cffb
BirthObjectId ID : a303763a59ffda11b4f60010c6d0b345
Domain ID : 00000000000000000000000000000000

C:\ossv\dataset\actual\temp>fsutil hardlink create
d1\hl_f1 f1
Hardlink created for
C:\ossv\dataset\actual\temp\d1\hl_f1 <<===>>
C:\ossv\dataset\actual\temp\f1

C:\ossv\dataset\actual\temp>del f1

C:\ossv\dataset\actual\temp>fsutil objectid query
d1\hl_f1
Object ID : a303763a59ffda11b4f60010c6d0b345
BirthVolume ID : a67ab85bf0b4fb48b899b4b26542cffb
BirthObjectId ID : a303763a59ffda11b4f60010c6d0b345
Domain ID : 00000000000000000000000000000000

C:\ossv\dataset\actual\temp>echo > f1

C:\ossv\dataset\actual\temp>fsutil objectid query f1
Object ID : a303763a59ffda11b4f60010c6d0b345
BirthVolume ID : a67ab85bf0b4fb48b899b4b26542cffb
BirthObjectId ID : a303763a59ffda11b4f60010c6d0b345
Domain ID : 00000000000000000000000000000000

C:\ossv\dataset\actual\temp>fileindex f1
File Index : 20000:3D133, 131072:250163,
562949953671475

C:\ossv\dataset\actual\temp>fileindex d1\hl_f1
File Index : 20000:3D11C, 131072:250140,
562949953671452

--Sajeev

__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/