KDFS-windows-hard-link-count-20090628
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 29 Jun 2009 04:26:19 +0000 (04:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 29 Jun 2009 04:26:19 +0000 (04:26 +0000)
commit6072df4c337260ed33b40e5b437d205c7ee670d0
treeff8b46007a8ab8746ac4ac8b2acd5ba42a2eb68b
parenta6cbfae1f5b67ebe9b02527faccd3337cf6fab72
KDFS-windows-hard-link-count-20090628

LICENSE MIT

cm_Link() is used to create hard links.  It did not apply the updated
link target status info to the target cm_scache_t object.  As a result
the linkCount would be incorrect.

cm_Unlink() did not take linkCount into account.  It did not reduce the
locally known linkCount, nor did it invalidate any currently known
callback.  As a result the linkCount would be incorrect.

(cherry picked from commit b8a1dba29367c9786a5f43c90b0a000ff4d4315d)
src/WINNT/afsd/cm_vnodeops.c