reserve space for . and .. in dynroot/freelance
int curDirEntryInPage = 0;
int sizeOfCurEntry;
int dirSize;
-
+
+ /* Reserve 2 directory chunks for "." and ".." */
+ curChunk += 2;
while (curDirEntry!=cm_noLocalMountPoints) {
sizeOfCurEntry = cm_NameEntries((cm_localMountPoints+curDirEntry)->namep, 0);
afs_dynroot_addDirEnt(dirHeader, &curPage, &curChunk, "..", 1);
linkCount += 2;
+ /* Reserve space for "." and ".." */
+ curChunk += 2;
+
for (cellidx = 0; cellidx < maxcellidx; cellidx++) {
c = afs_GetCellByIndex(cellidx, READ_LOCK);
afs_dynroot_addDirEnt(dirHeader, &curPage, &curChunk,