From: Tommi Rantala <tommi.t.rantala@nokia.com>
To: davej@codemonkey.org.uk
Cc: trinity@vger.kernel.org, Tommi Rantala <tommi.t.rantala@nokia.com>
Subject: [PATCH 2/2] ioctls/vfs.c: FS_IOC_GETFSMAP
Date: Wed, 21 Jun 2017 21:33:58 +0300 [thread overview]
Message-ID: <20170621183358.25578-2-tommi.t.rantala@nokia.com> (raw)
In-Reply-To: <20170621183358.25578-1-tommi.t.rantala@nokia.com>
---
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
prev parent reply other threads:[~2017-06-21 18:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-21 18:33 [PATCH 1/2] ioctls/vfs.c: add more ioctls from linux/fs.h Tommi Rantala
2017-06-21 18:33 ` Tommi Rantala [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170621183358.25578-2-tommi.t.rantala@nokia.com \
--to=tommi.t.rantala@nokia.com \
--cc=davej@codemonkey.org.uk \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).