mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-24 02:03:37 +08:00
sload.f2fs: fix the missing of bit mask for file type
Fix the missing of bit mask for the file type bit fields. Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
2b241e1da9
commit
43543b9b5f
@ -157,7 +157,7 @@ static void set_inode_metadata(struct dentry *de)
|
||||
|
||||
de->size = stat.st_size;
|
||||
de->mode = stat.st_mode &
|
||||
(S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
|
||||
(S_IFMT|S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
|
||||
if (c.fixed_time == -1 && c.from_dir)
|
||||
de->mtime = stat.st_mtime;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user