// === PROTOTYPES ===
int DevFS_AddDevice(tDevFS_Driver *Dev);
-tVFS_Node *DevFS_InitDevice(char *Device, char *Options);
+tVFS_Node *DevFS_InitDevice(char *Device, char **Options);
char *DevFS_ReadDir(tVFS_Node *Node, int Pos);
tVFS_Node *DevFS_FindDir(tVFS_Node *Node, char *Name);
"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++;
}
/**
- * \fn tVFS_Node *DevFS_InitDevice(char *Device, char *Options)
+ * \fn tVFS_Node *DevFS_InitDevice(char *Device, char **Options)
* \brief Initialise the DevFS and detect double-mounting, or just do nothing
- * \stub
+ * \note STUB
*/
-tVFS_Node *DevFS_InitDevice(char *Device, char *Options)
+tVFS_Node *DevFS_InitDevice(char *Device, char **Options)
{
return &gDevFS_RootNode;
}
dev = dev->Next
);
- return dev->Name;
+ return strdup(dev->Name);
}
/**