From: Jeffrey Altman Date: Thu, 25 Sep 2014 17:23:16 +0000 (-0400) Subject: Windows: SetDispositionInfo vs Link Count X-Git-Tag: upstream/1.8.0_pre1^2~565 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c90c5e97c6361e06ff06aab02d0768a0bd43354d;p=packages%2Fo%2Fopenafs.git 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 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 //