]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: SetDispositionInfo vs Link Count
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 25 Sep 2014 17:23:16 +0000 (13:23 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 3 Oct 2014 06:57:50 +0000 (02:57 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp

index 274b043cece967a2c8da65ebe022bbb278ce2355..a127059fce923a872c3c7d40d47da828ffe63f40 100644 (file)
@@ -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
                 //