]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_inode_fork.c
xfs: don't allow reflinked dir/dev/fifo/socket/pipe files
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:37:28 +0000 (12:37 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:37:28 +0000 (12:37 +1100)
commit9d3f10866346bac2a8945bba91849027ef37e843
tree0435899681649b9c5f9fe42743a0ea8c9c15edcf
parentf0b8028cb025f36ab71ab271cab9529d8616ac64
xfs: don't allow reflinked dir/dev/fifo/socket/pipe files

Source kernel commit: 11715a21bc3035440b853a0334685f1a55ca8c3c

Only non-rt files can be reflinked, so check that when we load an
inode.  Also, don't leak the attr fork if there's a failure.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_inode_fork.c