]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r260545:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Jan 2014 15:20:33 +0000 (15:20 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Jan 2014 15:20:33 +0000 (15:20 +0000)
commit6ce633ed7651a1642bf9be72a2f4f962a196db19
treefe034dea529dfaa842e66e11af8fa9b53e007e7b
parent97f218f465463f617066c218144936c5a0b1ebc4
MFC r260545:

ext2fs: fix inode flag conversion.

After r252890 we are naively attempting to pass through the
inode flags.  This is technically incorrect as the ext2
inode flags don't match the UFS/system values used in
FreeBSD and a clean conversion is needed.

Some filtering was left in place so the change didn't cause
significant changes in FreeBSD but some of the garbage passed
is likely to be the cause for warning messages in linux.

Fix the issue by resetting the flags before conversion as was
done previously. This also means we will not pass the EXT4_*
inode flags into FreeBSD's inode.

PR: kern/185448

git-svn-id: svn://svn.freebsd.org/base/stable/10@260629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/ext2fs/ext2_inode_cnv.c