From: Jeffrey Altman Date: Thu, 25 Sep 2014 17:23:16 +0000 (-0400) Subject: Windows: SetDispositionInfo vs Link Count X-Git-Tag: openafs-stable-1_8_0pre1~565 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=c90c5e97c6361e06ff06aab02d0768a0bd43354d Windows: SetDispositionInfo vs Link Count When SetDispositionInfo is called to mark a file for pending delete the link count should not be decrememented. The count is decremented only when the file is actually deleted. Change-Id: I611e2b9695179abcba01d6fa83022b08044ee8bf Reviewed-on: http://gerrit.openafs.org/11508 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 274b043..a127059 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -1914,13 +1914,6 @@ AFSSetDispositionInfo( IN PIRP Irp, { // - // Reduce the Link count in the object information block - // to correspond with the deletion of the directory entry. - // - - pFcb->ObjectInformation->Links--; - - // // Check if this is a directory that there are not currently other opens //