Whamcloud - gitweb
copy-in: create hardlinks with the correct directory filetype
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 May 2015 14:46:06 +0000 (10:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 May 2015 14:46:06 +0000 (10:46 -0400)
commita433db04d054a4c949c816b28cfa9952b35e0b0a
treec7d474e95e781d4990e7cce7c020d66681762841
parent08b7417b63e3ddcaf625d7c9bba70f67dc7091f3
copy-in: create hardlinks with the correct directory filetype

When we're creating hard links via ext2fs_link, the (misnamed?) flags
argument specifies the filetype for the directory entry.  This is
*derived* from i_mode, so provide a translator.  Otherwise, fsck will
complain about unset file types.

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