xfs: return FIEMAP_EXTENT_UNKNOWN for delayed allocation extent
authorJie Liu <jeff.liu@oracle.com>
Thu, 6 Jun 2013 13:24:01 +0000 (06:24 -0700)
committerBen Myers <bpm@sgi.com>
Wed, 19 Jun 2013 19:18:32 +0000 (14:18 -0500)
commit635c4d0bd94512de3aafa7ae8f45c1dce0fc1ffe
tree0bdf3ba8e7739bc8859f6e4b68711dc2cebe6d9c
parent725eb1eb2ae88c200466fec34bcf1fbce4b8eca3
xfs: return FIEMAP_EXTENT_UNKNOWN for delayed allocation extent

For FIEMAP ioctl(2), if an extent is in delayed allocation
state, we need to return the FIEMAP_EXTENT_UNKNOWN flag except
the FIEMAP_EXTENT_DELALLOC because its data location is unknown.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_iops.c