Kernel - Removed an unneeded todo
[tpg/acess2.git] / Kernel / vfs / main.c
index dc43fbf..c6525f4 100644 (file)
@@ -13,11 +13,13 @@ extern tVFS_Driver  gRootFS_Info;
 extern tVFS_Driver     gDevFS_Info;
 
 // === PROTOTYPES ===
+#if 0
  int   VFS_Init(void);
 char   *VFS_GetTruePath(const char *Path);
 void   VFS_GetMemPath(char *Dest, void *Base, Uint Length);
 tVFS_Driver    *VFS_GetFSByName(const char *Name);
  int   VFS_AddDriver(tVFS_Driver *Info);
+#endif
 void   VFS_UpdateDriverFile(void);
 
 // === EXPORTS ===
@@ -50,13 +52,14 @@ int VFS_Init(void)
        giVFS_DriverFileID = SysFS_RegisterFile("VFS/Drivers", NULL, 0);
        
        if( VFS_Mount("root", "/", "rootfs", "") != 0 ) {
-               Panic("Unable to mount root (Where the **** is rootfs?)");
+               Log_KernelPanic("VFS", "Unable to mount root (Where the **** is rootfs?)");
                return -1;
        }
        VFS_MkDir("/Devices");
        VFS_MkDir("/Mount");
        VFS_Mount("dev", "/Devices", "devfs", "");
-       
+               
+       Log_Debug("VFS", "Setting max files");
        CFGINT(CFG_VFS_MAXFILES) = 32;
        return 0;
 }
@@ -73,12 +76,12 @@ char *VFS_GetTruePath(const char *Path)
        tmp = VFS_GetAbsPath(Path);
        if(tmp == NULL) return NULL;
        //Log(" VFS_GetTruePath: tmp = '%s'", tmp);
-       node = VFS_ParsePath(tmp, &ret);
+       node = VFS_ParsePath(tmp, &ret, NULL);
        free(tmp);
        //Log(" VFS_GetTruePath: node=%p, ret='%s'", node, ret);
        
        if(!node)       return NULL;
-       if(node->Close) node->Close(node);
+       if(node->Type->Close)   node->Type->Close(node);
        
        return ret;
 }

UCC git Repository :: git.ucc.asn.au