Windows: FileStandardInfo Link count
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 25 Sep 2014 17:21:48 +0000 (13:21 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 3 Oct 2014 15:16:03 +0000 (11:16 -0400)
Instead of returning 1 in all cases the ObjectInformation.Links
value should be returned to the caller.

Reviewed-on: http://gerrit.openafs.org/11507
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 8da84729c8f1e849882aea7b1268c6ac49936f21)

Change-Id: Ic0714aaa119a9e930f84c606487b173306b1a3a9
Reviewed-on: http://gerrit.openafs.org/11519
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp

index c795998..274b043 100644 (file)
@@ -954,7 +954,7 @@ AFSQueryStandardInfo( IN PIRP Irp,
         RtlZeroMemory( Buffer,
                        *Length);
 
-        Buffer->NumberOfLinks = 1;
+       Buffer->NumberOfLinks = DirectoryCB->ObjectInformation->Links;
         Buffer->DeletePending = BooleanFlagOn( pCcb->DirectoryCB->Flags, AFS_DIR_ENTRY_PENDING_DELETE);
 
        Buffer->AllocationSize.QuadPart = DirectoryCB->ObjectInformation->AllocationSize.QuadPart;