From c90c5e97c6361e06ff06aab02d0768a0bd43354d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 25 Sep 2014 13:23:16 -0400 Subject: [PATCH] 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 --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 274b043ce..a127059fc 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -1913,13 +1913,6 @@ AFSSetDispositionInfo( IN PIRP Irp, if( pFcb->Header.NodeTypeCode == AFS_DIRECTORY_FCB) { - // - // 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 // -- 2.39.5