Modules/Ext2 - Fixed typo and forgetting to set inode link count in VFS node
authorJohn Hodge <[email protected]>
Wed, 15 Aug 2012 05:00:41 +0000 (13:00 +0800)
committerJohn Hodge <[email protected]>
Wed, 15 Aug 2012 05:00:41 +0000 (13:00 +0800)
KernelLand/Modules/Filesystems/Ext2/dir.c
KernelLand/Modules/Filesystems/Ext2/ext2.c

index 4039a7c..40cdddd 100644 (file)
@@ -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;
index 460c4fb..38041a4 100644 (file)
@@ -231,7 +231,7 @@ void Ext2_CloseFile(tVFS_Node *Node)
                {\r
                        LOG("Removng inode");\r
                        // Remove inode\r
-                       Log_Warning("Ext2", "TODO: Remove inode when not deleted");\r
+                       Log_Warning("Ext2", "TODO: Remove inode when not referenced");\r
                }\r
                if( acls != &gVFS_ACL_EveryoneRW ) {\r
                        free(acls);\r

UCC git Repository :: git.ucc.asn.au