Mercurial > yaffs-ecoscentric
changeset 113:7d94fc4f2df4
Fix deleted hardlink handling
| author | charles |
|---|---|
| date | Mon, 19 Dec 2005 21:46:07 +0000 |
| parents | ea18b2c034e6 |
| children | 8c743969565d |
| files | yaffs_guts.c |
| diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -4894,11 +4894,13 @@ static int yaffs_ScanBackwards(yaffs_Dev break; case YAFFS_OBJECT_TYPE_HARDLINK: - in->variant.hardLinkVariant.equivalentObjectId = + if(!in->deleted) { + in->variant.hardLinkVariant.equivalentObjectId = oh->equivalentObjectId; - in->hardLinks.next = + in->hardLinks.next = (struct list_head *) hardList; - hardList = in; + hardList = in; + } break; case YAFFS_OBJECT_TYPE_DIRECTORY: /* Do nothing */
