]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: error out if trying to add attrs and anextents > 0
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 5 Dec 2016 01:38:11 +0000 (12:38 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 5 Dec 2016 01:38:11 +0000 (12:38 +1100)
commit0f352f8ee8412bd9d34fb2a6411241da61175c0e
tree784a002b8122667ab1f2f6a819dc1d99523bf4c2
parent96a3aefb8ffde23180130460b0b2407b328eb727
xfs: error out if trying to add attrs and anextents > 0

We shouldn't assert if somehow we end up trying to add an attr fork to
an inode that apparently already has attr extents because this is an
indication of on-disk corruption.  Instead, return an error code to
userspace.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c