* Acess2 VFS
* - Directory Management Functions
*/
-#define DEBUG 0
+#define DEBUG 1
#include <acess.h>
#include <vfs.h>
#include <vfs_int.h>
else
parent = VFS_ParsePath(absPath, NULL);
- if(!parent) return -1; // Error Check
+ LOG("parent = %p", parent);
+
+ if(!parent) {
+ LEAVE('i', -1);
+ return -1; // Error Check
+ }
// Permissions Check
if( !VFS_CheckACL(parent, VFS_PERM_EXECUTE|VFS_PERM_WRITE) ) {
giVFS_MountFileID = SysFS_RegisterFile("VFS/Mounts", NULL, 0);
giVFS_DriverFileID = SysFS_RegisterFile("VFS/Drivers", NULL, 0);
- VFS_Mount("root", "/", "rootfs", "");
+ if( VFS_Mount("root", "/", "rootfs", "") != 0 ) {
+ Panic("Unable to mount root (Where the **** is rootfs?)");
+ return -1;
+ }
VFS_MkDir("/Devices");
VFS_MkDir("/Mount");
VFS_Mount("dev", "/Devices", "devfs", "");