freelance-compute-dirsize-correctly-20011009
authorNickolai Zeldovich <kolya@mit.edu>
Tue, 9 Oct 2001 05:57:31 +0000 (05:57 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Oct 2001 05:57:31 +0000 (05:57 +0000)
compute directory size properly

src/WINNT/afsd/cm_freelance.c

index 6ae0889..1da7f85 100644 (file)
@@ -90,7 +90,7 @@ void cm_InitFakeRootDir() {
                        (curDirEntryInPage + 1 >= CM_DIR_EPP)) {
                        curPage++;
                        curDirEntryInPage = 0;
-                       curChunk = 0;
+                       curChunk = 1;
                }
                curChunk += sizeOfCurEntry;
                curDirEntry++;