]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ioctl.c
GFS2: Support for FIEMAP ioctl
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 14 Oct 2008 13:43:29 +0000 (14:43 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Jan 2009 07:38:46 +0000 (07:38 +0000)
commite9079cce201784632aed4b1a3121ee38c1ced0b6
tree6d99fc45afb3889e5835d713948226d7548d6750
parentfe0bdec68b77020281dc814805edfe594ae89e0f
GFS2: Support for FIEMAP ioctl

This patch implements the FIEMAP ioctl for GFS2. We can use the generic
code (aside from a lock order issue, solved as per Ted Tso's suggestion)
for which I've introduced a new variant of the generic function. We also
have one exception to deal with, namely stuffed files, so we do that
"by hand", setting all the required flags.

This has been tested with a modified (I could only find an old version) of
Eric's test program, and appears to work correctly.

This patch does not currently support FIEMAP of xattrs, but the plan is to add
that feature at some future point.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Theodore Tso <tytso@mit.edu>
Cc: Eric Sandeen <sandeen@redhat.com>
fs/gfs2/ops_inode.c
fs/ioctl.c
include/linux/fs.h