mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
dynamic-root-allocate-space-for-dot-and-dotdot-20011102
no space was being allocated for . and ..; do so
This commit is contained in:
parent
ea77b04c29
commit
3f8a159257
@ -83,6 +83,8 @@ void cm_InitFakeRootDir() {
|
||||
int sizeOfCurEntry;
|
||||
int dirSize;
|
||||
|
||||
/* Reserve 2 directory chunks for "." and ".." */
|
||||
curChunk += 2;
|
||||
|
||||
while (curDirEntry!=cm_noLocalMountPoints) {
|
||||
sizeOfCurEntry = cm_NameEntries((cm_localMountPoints+curDirEntry)->namep, 0);
|
||||
|
@ -229,6 +229,9 @@ afs_RefreshDynroot()
|
||||
curChunk = 13;
|
||||
curPage = 0;
|
||||
|
||||
/* Reserve space for "." and ".." */
|
||||
curChunk += 2;
|
||||
|
||||
for (cellidx = 0; cellidx < maxcellidx; cellidx++) {
|
||||
c = afs_GetCellByIndex(cellidx, READ_LOCK, 0 /* don't refresh */);
|
||||
if (!c) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user