15 extern struct Env adfEnv
;
21 char* path(struct Volume
*vol
, SECTNUM parent
)
23 struct bEntryBlock entryBlk
;
28 adfReadEntryBlock(vol
, parent
, &entryBlk
);
29 len
= min(entryBlk
.nameLen
, MAXNAMELEN
);
30 memcpy(tmpPath
,entryBlk
.name
,len
);
32 /* if (entryBlk.parent!=vol->rootBlock) {
33 return(strcat(path(vol,entryBlk.parent), tmpPath));
44 RETCODE
adfBlockPtr2EntryName(struct Volume
*vol
, SECTNUM nSect
, SECTNUM lPar
,
45 char **name
, ULONG
*size
)
47 struct bEntryBlock entryBlk
;
51 adfReadEntryBlock(vol
, nSect
, &entryBlk
);
52 *size
= entryBlk
.byteSize
;
54 adfEntBlock2Entry(&entryBlk
, &entry
); //error
55 /* if (entryBlk.secType!=ST_ROOT && entry.parent!=lPar)
56 printf("path=%s\n",path(vol,entry.parent));
68 /*##################################################################################*/