2 * Acess Micro - VFS Server Ver 1
11 typedef struct sVFS_Mount {
12 struct sVFS_Mount *Next;
18 tVFS_Driver *Filesystem;
26 typedef struct sVFS_Handle {
33 typedef struct sVFS_Proc {
34 struct sVFS_Proc *Next;
40 tVFS_Handle Handles[];
43 typedef struct sVFS_MMapPage {
49 extern tRWLock glVFS_MountList;
50 extern tVFS_Mount *gVFS_Mounts;
51 extern tVFS_Driver *gVFS_Drivers;
55 extern char *VFS_GetAbsPath(const char *Path);
56 extern tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath, tVFS_Mount **MountPoint);
57 extern tVFS_Handle *VFS_GetHandle(int FD);
59 extern int VFS_CheckACL(tVFS_Node *Node, Uint Permissions);
61 extern tVFS_Mount *VFS_GetMountByIdent(Uint32 MountID);
63 extern int VFS_MkNod(const char *Path, Uint Flags);
66 // --- VFS Helpers ---
67 static inline void _CloseNode(tVFS_Node *Node)
69 if(Node && Node->Type && Node->Type->Close)
70 Node->Type->Close( Node );