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 274b043..a127059 100644 (file)
@@ -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
                 //