tVFS_Handle *h = VFS_GetHandle(FD);
char *tmp;
- ENTER("ph pDest", h, Dest);
+ //ENTER("ph pDest", h, Dest);
if(!h || h->Node->ReadDir == NULL) {
- LEAVE('i', 0);
+ //LEAVE('i', 0);
return 0;
}
if(h->Node->Size != -1 && h->Position >= h->Node->Size) {
- LEAVE('i', 0);
+ //LEAVE('i', 0);
return 0;
}
h->Position ++;
} while(tmp != NULL && (Uint)tmp < (Uint)VFS_MAXSKIP);
- LOG("tmp = '%s'", READDIR_FIXUP(tmp));
+ //LOG("tmp = '%s'", READDIR_FIXUP(tmp));
if(!tmp) {
- LEAVE('i', 0);
+ //LEAVE('i', 0);
return 0;
}
if((Uint)tmp & 1)
free(READDIR_FIXUP(tmp));
- LEAVE('i', 1);
+ //LEAVE('i', 1);
return 1;
}
"devfs", 0, DevFS_InitDevice, NULL, NULL
};
tVFS_Node gDevFS_RootNode = {
- .NumACLs = 1,
+ .Size = 0,
.Flags = VFS_FFLAG_DIRECTORY,
+ .NumACLs = 1,
.ACLs = &gVFS_ACL_EveryoneRW,
.ReadDir = DevFS_ReadDir,
.FindDir = DevFS_FindDir
{
Dev->Next = gDevFS_Drivers;
gDevFS_Drivers = Dev;
-
+ gDevFS_RootNode.Size ++;
return giDevFS_NextID++;
}