X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FFilesystems%2FExt2%2Fdir.c;fp=KernelLand%2FModules%2FFilesystems%2FExt2%2Fdir.c;h=0887ed289234dd2d14b539e59fc95f58d12b1c85;hb=9dccbc6f16485ea62caa8c4153f6f878da8cbb0d;hp=2a7bc2fe5709bbe719e0027bf7441d86cba11841;hpb=67c9c489ba80c23739854905cf6d2f378193c9a8;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Filesystems/Ext2/dir.c b/KernelLand/Modules/Filesystems/Ext2/dir.c index 2a7bc2fe..0887ed28 100644 --- a/KernelLand/Modules/Filesystems/Ext2/dir.c +++ b/KernelLand/Modules/Filesystems/Ext2/dir.c @@ -16,8 +16,8 @@ char *Ext2_ReadDir(tVFS_Node *Node, int Pos); tVFS_Node *Ext2_FindDir(tVFS_Node *Node, const char *FileName); int Ext2_MkNod(tVFS_Node *Node, const char *Name, Uint Flags); - int Ext2_Relink(tVFS_Node *Node, const char *OldName, const char *NewName); - int Ext2_Link(tVFS_Node *Parent, tVFS_Node *Node, const char *Name); + int Ext2_Unlink(tVFS_Node *Node, const char *OldName); + int Ext2_Link(tVFS_Node *Parent, const char *Name, tVFS_Node *Node); // --- Helpers --- tVFS_Node *Ext2_int_CreateNode(tExt2_Disk *Disk, Uint InodeId); @@ -27,7 +27,7 @@ tVFS_NodeType gExt2_DirType = { .ReadDir = Ext2_ReadDir, .FindDir = Ext2_FindDir, .MkNod = Ext2_MkNod, - .Relink = Ext2_Relink, + .Unlink = Ext2_Unlink, .Link = Ext2_Link, .Close = Ext2_CloseFile }; @@ -207,9 +207,9 @@ int Ext2_MkNod(tVFS_Node *Parent, const char *Name, Uint Flags) * \param Node This (directory) node * \param OldName Old name of file * \param NewName New name for file - * \return Boolean Failure - See ::tVFS_Node.Relink for info + * \return Boolean Failure - See ::tVFS_Node.Unlink for info */ -int Ext2_Relink(tVFS_Node *Node, const char *OldName, const char *NewName) +int Ext2_Unlink(tVFS_Node *Node, const char *OldName) { return 1; } @@ -217,11 +217,11 @@ int Ext2_Relink(tVFS_Node *Node, const char *OldName, const char *NewName) /** * \brief Links an existing node to a new name * \param Parent Parent (directory) node - * \param Node Node to link * \param Name New name for the node + * \param Node Node to link * \return Boolean Failure - See ::tVFS_Node.Link for info */ -int Ext2_Link(tVFS_Node *Node, tVFS_Node *Child, const char *Name) +int Ext2_Link(tVFS_Node *Node, const char *Name, tVFS_Node *Child) { #if 0 tExt2_Disk *disk = Node->ImplPtr;