diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-03-28 17:56:37 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-04-03 18:18:17 -0400 |
commit | e89c041338ed6ef2694e6465ca1ba033e0a2978c (patch) | |
tree | 7866a101041335d77127b2258e5759b61d1d1e60 /fs/xfs/xfs_ioctl32.c | |
parent | fb3c3de2f65c007f3ee50538ea131f5c4603c7bc (diff) |
xfs: implement the GETFSMAP ioctl
Introduce a new ioctl that uses the reverse mapping btree to return
information about the physical layout of the filesystem.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl32.c')
-rw-r--r-- | fs/xfs/xfs_ioctl32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index 7c49938c5aed..fa0bc4d46065 100644 --- a/fs/xfs/xfs_ioctl32.c +++ b/fs/xfs/xfs_ioctl32.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/mount.h> | 20 | #include <linux/mount.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/uaccess.h> | 22 | #include <linux/uaccess.h> |
23 | #include <linux/fsmap.h> | ||
23 | #include "xfs.h" | 24 | #include "xfs.h" |
24 | #include "xfs_fs.h" | 25 | #include "xfs_fs.h" |
25 | #include "xfs_format.h" | 26 | #include "xfs_format.h" |
@@ -554,6 +555,7 @@ xfs_file_compat_ioctl( | |||
554 | case XFS_IOC_GOINGDOWN: | 555 | case XFS_IOC_GOINGDOWN: |
555 | case XFS_IOC_ERROR_INJECTION: | 556 | case XFS_IOC_ERROR_INJECTION: |
556 | case XFS_IOC_ERROR_CLEARALL: | 557 | case XFS_IOC_ERROR_CLEARALL: |
558 | case FS_IOC_GETFSMAP: | ||
557 | return xfs_file_ioctl(filp, cmd, p); | 559 | return xfs_file_ioctl(filp, cmd, p); |
558 | #ifndef BROKEN_X86_ALIGNMENT | 560 | #ifndef BROKEN_X86_ALIGNMENT |
559 | /* These are handled fine if no alignment issues */ | 561 | /* These are handled fine if no alignment issues */ |