]> code.ossystems Code Review - openembedded-core.git/commit
e2fsprogs: mke2fs: handle hardlinks
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 7 Mar 2014 06:59:30 +0000 (01:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:44:26 +0000 (14:44 +0000)
commit174ec622bdc00fc26392704fdadeac2c067a33f6
tree92d1045a5854c0d060d3aadd220a157fbde96c4e
parent83357ef1f6797e48de4870ccd552951b0efb3b53
e2fsprogs: mke2fs: 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 from the genext2fs.

[YOCTO #4083]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs/0009-misc-create_inode.c-handle-hardlinks.patch [new file with mode: 0644]