From: Daniel Stodden <daniel.stodden@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian, Campbell <Ian.Campbell@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] blktap[12]: include <sys/mount.h> instead of <linux/fs.h>
Date: Wed, 12 Jan 2011 14:06:08 -0800 [thread overview]
Message-ID: <1294869968.7920.10085.camel@agari.van.xensource.com> (raw)
In-Reply-To: <a5a02c0baa75b66c71f2.1294825785@localhost.localdomain>
On Wed, 2011-01-12 at 04:49 -0500, Ian Campbell wrote:
> # HG changeset patch
> # User Ian Campbell <ian.campbell@citrix.com>
> # Date 1294825752 0
> # Node ID a5a02c0baa75b66c71f2828d22971f9dfb1e8a6b
> # Parent 610c0b9e9e3d70275a37aba9857e1b9d3a361bd0
> blktap[12]: include <sys/mount.h> instead of <linux/fs.h>
>
> The former is a userspace sanitised header which contains the
> definitions we need. In some distros linux/fs.h defines WRITE which
> conflicts with blktaps own use of that name.
Ack.
[But fwiw we have BLKIF_OP_WRITE and TD_OP_WRITE and all proper code
should carry a TD_, so I'm slightly surprised.]
Daniel
> Also there is no reason to use <linux/errno.h> over the more normal
> <errno.h>.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>
> diff -r 610c0b9e9e3d -r a5a02c0baa75 tools/blktap/drivers/blk_linux.c
> --- a/tools/blktap/drivers/blk_linux.c Wed Jan 12 09:49:00 2011 +0000
> +++ b/tools/blktap/drivers/blk_linux.c Wed Jan 12 09:49:12 2011 +0000
> @@ -1,6 +1,6 @@
> #include <inttypes.h>
> #include <sys/ioctl.h>
> -#include <linux/fs.h>
> +#include <sys/mount.h>
> #include "tapdisk.h"
> #include "blk.h"
>
> diff -r 610c0b9e9e3d -r a5a02c0baa75 tools/blktap2/drivers/blk_linux.c
> --- a/tools/blktap2/drivers/blk_linux.c Wed Jan 12 09:49:00 2011 +0000
> +++ b/tools/blktap2/drivers/blk_linux.c Wed Jan 12 09:49:12 2011 +0000
> @@ -1,7 +1,7 @@
> #include <inttypes.h>
> +#include <errno.h>
> #include <sys/ioctl.h>
> -#include <linux/fs.h>
> -#include <linux/errno.h>
> +#include <sys/mount.h>
> #include "tapdisk.h"
> #include "blk.h"
next prev parent reply other threads:[~2011-01-12 22:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 9:49 [PATCH] blktap[12]: include <sys/mount.h> instead of <linux/fs.h> Ian Campbell
2011-01-12 9:55 ` Ian Campbell
2011-01-12 17:18 ` Ian Jackson
2011-01-12 22:06 ` Daniel Stodden [this message]
2011-01-12 22:12 ` Ian Campbell
2011-01-17 17:14 ` Ian Jackson
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=1294869968.7920.10085.camel@agari.van.xensource.com \
--to=daniel.stodden@citrix.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.