[XFS] Hook up the fiemap ioctl.
authorEric Sandeen <sandeen@sandeen.net>
Fri, 28 Nov 2008 03:23:35 +0000 (14:23 +1100)
committerNiv Sardi <xaiki@sgi.com>
Mon, 1 Dec 2008 00:29:42 +0000 (11:29 +1100)
commitf35642e2f89f2b0379e929bd9027342365abc839
tree1a00bb1501497bb25d597b113fabfaa7a631e406
parent5af317c942aebc928ab244eb69581bd8e5333215
[XFS] Hook up the fiemap ioctl.

This adds the fiemap inode_operation, which for us converts the
fiemap values & flags into a getbmapx structure which can be sent
to xfs_getbmap.  The formatter then copies the bmv array back into
the user's fiemap buffer via the fiemap helpers.

If we wanted to be more clever, we could also return mapping data
for in-inode attributes, but I'm not terribly motivated to do that
just yet.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c