Add support to hard links to CROMFS

This will resolve numerous problems with the way that hard links, in particular "." and ".." are handled.  Instead of trying to fudge the stat flags, the correct implementation is to follow the hard link to the final link target node.  That is what must determine the attributes of the directory entry.
This commit is contained in:
Gregory Nutt
2020-08-10 11:08:08 -06:00
committed by David Sidrane
parent 00c662bbd7
commit b256b2055f
2 changed files with 338 additions and 107 deletions
+337 -106
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -925,7 +925,7 @@ static void gen_directory(const char *path, const char *name, mode_t mode,
uint32_t save_offset = g_offset;
uint32_t save_diroffset = g_diroffset;
uint32_t save_parent_offset = g_parent_offset;
FILE *save_tmpstream = g_tmpstream;
FILE *save_tmpstream = g_tmpstream;
FILE *subtree_stream;
int namlen;
int result;