Whamcloud - gitweb
create_inode: handle hard link inum mappings per populate_fs invocation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Mar 2014 03:34:41 +0000 (23:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 12 Mar 2014 03:34:46 +0000 (23:34 -0400)
commitb99888a070656cb81994d2e1e08d946597b1fe43
tree2a6acd6b4e1dd80db743c3bc9e246a36b2d3b89d
parenta3111e80b82d28e2ad5c8ad74bc4acecf559d1d4
create_inode: handle hard link inum mappings per populate_fs invocation

When calling populate_fs, the map for hardlink detection is not
cleaned up between populate_fs invocations, which could lead to
unexpected results if anyone calls populate_fs twice in the same
client program).  This doesn't happen right now, but we might as well
clean it up.

The detctor fails if the external directory crosses mountpoints,
so fix that too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/create_inode.c
misc/create_inode.h
misc/mke2fs.c