shithub: lwext4

Download patch

ref: 6d8b61ed7f97a1ee0926939ed17b6522d22ab308
parent: 5e12e58afed7bcda732d379db10d684370a6687a
parent: 5f12f965de0cb4554ddcdc74ab458f9677ba6d28
author: gkostka <kostka.grzegorz@gmail.com>
date: Mon Sep 21 04:43:34 EDT 2015

Merge pull request #4 from ngkaho1234/master

FIX: the parent directory reference in child directory inode, a.k.a '..' dirent is not correctly reset during rename.

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -253,7 +253,7 @@
 
 			} else {
 #if CONFIG_DIR_INDEX_ENABLE
-				rc = ext4_dir_dx_reset_parent_inode(parent,
+				rc = ext4_dir_dx_reset_parent_inode(child,
 						parent->index);
 				if (rc != EOK)
 					return rc;