Dear Sir/ Madam,
 
    I can't remove directory in yaffs.
I found unlinked directory in fake directory unlinkedDir by debug.
why?
 
part of source code:
if(directory->objectId == YAFFS_OBJECTID_UNLINKED)
{
printk("***** [YAFFS_OBJECTID_UNLINKED] *****\n");
ylist_for_each(i, &directory->variant.directoryVariant.children) {
 if (i) {
 l = ylist_entry(i, yaffs_Object, siblings);
 yaffs_GetObjectName(l, buffer, YAFFS_MAX_NAME_LENGTH);
 printk("Directory name: %s *****\n", buffer);
}
}
}
 
result:
***** [YAFFS_OBJECTID_UNLINKED] *****
Directory name: unlinked *****
Directory name: unlinked *****
Directory name: unlinked *****
 
 
Hope to get your reply soon.
    Best wishes!
                                                                                 yours sincerely
                                                                                           wgj