[PATCH 2/2] ioctls/vfs.c: FS_IOC_GETFSMAP
Tommi Rantala <[email protected]> Wed, 21 Jun 2017 21:33:58 +0300
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <[email protected]> |
---
configure | 1 +
ioctls/vfs.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/configure b/configure
index 8639a38e..450c94ad 100755
--- a/configure
+++ b/configure
@@ -291,6 +291,7 @@ fi
#############################################################################################
check_header linux/caif/caif_socket.h USE_CAIF
+check_header linux/fsmap.h USE_FSMAP
check_header linux/if_alg.h USE_IF_ALG
check_header linux/rds.h USE_RDS
check_header linux/vfio.h USE_VFIO
diff --git a/ioctls/vfs.c b/ioctls/vfs.c
index 0bad6f56..1f60da45 100644
--- a/ioctls/vfs.c
+++ b/ioctls/vfs.c
@@ -2,6 +2,9 @@
#include <linux/fiemap.h>
#include <linux/fs.h>
#include <linux/blktrace_api.h>
+#ifdef USE_FSMAP
+#include <linux/fsmap.h>
+#endif
#include <linux/ioctl.h>
#include <asm/ioctls.h>
#include "ioctls.h"
@@ -241,6 +244,9 @@ static const struct ioctl vfs_ioctls[] = {
#ifdef FS_IOC_GET_ENCRYPTION_POLICY
{ .name = "FS_IOC_GET_ENCRYPTION_POLICY", .request = FS_IOC_GET_ENCRYPTION_POLICY, },
#endif
+#ifdef FS_IOC_GETFSMAP
+ { .name = "FS_IOC_GETFSMAP", .request = FS_IOC_GETFSMAP, },
+#endif
};
static const struct ioctl_group vfs_grp = {
--
2.13.0