windows-vol-ntops-20060905
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 6 Sep 2006 00:47:34 +0000 (00:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 6 Sep 2006 00:47:34 +0000 (00:47 +0000)
if the function is namei_XXX on unix then it is nt_XXXX on Windows

src/vol/vol-salvage.c

index d1589d1..141cc4c 100644 (file)
@@ -1461,7 +1461,11 @@ DoSalvageVolumeGroup(register struct InodeSummary *isp, int nVols)
                for (i = 0; i < nVols; i++) {
                        ip = allInodes + isp[i].index;
                         for (j = isp[i].nSpecialInodes; j < isp[i].nInodes; j++) {
+#ifdef AFS_NT40_ENV
+                                nt_SetLinkCount(fdP, ip[j].inodeNumber, 1, 1);
+#else
                                 namei_SetLinkCount(fdP, ip[j].inodeNumber, 1, 1);
+#endif
                    }
                }
            }