commit | f84894bc047898559f314531ed469c52d79ad7f2 | [log] [tgz] |
---|---|---|
author | Robert Yang <liezhi.yang@windriver.com> | Thu Mar 06 11:00:25 2014 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Mar 06 11:00:25 2014 -0500 |
tree | a2f24ce5cd47e5efa75ac636b74884b3de9633b9 | |
parent | 217c0bdf17899c0f79b73f76feeadd6d55863180 [diff] |
misc/create_inode.c: handle hardlinks Create the inode and save the native inode number when we meet the hard link (st_nlink > 1) at the first time, use ext2fs_link() to link the name to the target inode number when we meet the same native inode number again. This algorithm is referred this from the genext2fs. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Reviewed-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>