From: John Hodge Date: Wed, 15 Aug 2012 05:00:41 +0000 (+0800) Subject: Modules/Ext2 - Fixed typo and forgetting to set inode link count in VFS node X-Git-Tag: rel0.15~706^2~38 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7a078d8b7b68b15587560dba5da46d5afa7768d9;p=tpg%2Facess2.git Modules/Ext2 - Fixed typo and forgetting to set inode link count in VFS node --- diff --git a/KernelLand/Modules/Filesystems/Ext2/dir.c b/KernelLand/Modules/Filesystems/Ext2/dir.c index 4039a7c0..40cdddd5 100644 --- a/KernelLand/Modules/Filesystems/Ext2/dir.c +++ b/KernelLand/Modules/Filesystems/Ext2/dir.c @@ -355,6 +355,7 @@ tVFS_Node *Ext2_int_CreateNode(tExt2_Disk *Disk, Uint InodeID) // Set identifiers retNode.Inode = InodeID; retNode.ImplPtr = Disk; + retNode.ImplInt = inode.i_links_count; // Set file length retNode.Size = inode.i_size; diff --git a/KernelLand/Modules/Filesystems/Ext2/ext2.c b/KernelLand/Modules/Filesystems/Ext2/ext2.c index 460c4fbb..38041a47 100644 --- a/KernelLand/Modules/Filesystems/Ext2/ext2.c +++ b/KernelLand/Modules/Filesystems/Ext2/ext2.c @@ -231,7 +231,7 @@ void Ext2_CloseFile(tVFS_Node *Node) { LOG("Removng inode"); // Remove inode - Log_Warning("Ext2", "TODO: Remove inode when not deleted"); + Log_Warning("Ext2", "TODO: Remove inode when not referenced"); } if( acls != &gVFS_ACL_EveryoneRW ) { free(acls);