MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfChangeDir

Function adfChangeDir

dep/adflib/src/adf_dir.c:514–531  ·  view source on GitHub ↗

* adfChangeDir * */

Source from the content-addressed store, hash-verified

512 *
513 */
514RETCODE adfChangeDir(struct Volume* vol, char *name)
515{
516 struct bEntryBlock entry;
517 SECTNUM nSect;
518
519 if (adfReadEntryBlock( vol, vol->curDirPtr, &entry )!=RC_OK)
520 return RC_ERROR;
521 nSect = adfNameToEntryBlk(vol, entry.hashTable, name, &entry, NULL);
522/*printf("adfChangeDir=%d\n",nSect);*/
523 if (nSect!=-1) {
524 vol->curDirPtr = nSect;
525/* if (*adfEnv.useNotify)
526 (*adfEnv.notifyFct)(0,ST_ROOT);*/
527 return RC_OK;
528 }
529 else
530 return RC_ERROR;
531}
532
533
534/*

Callers 2

changeDirMethod · 0.85
changeDirButOneMethod · 0.85

Calls 2

adfReadEntryBlockFunction · 0.85
adfNameToEntryBlkFunction · 0.85

Tested by

no test coverage detected