All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Stefan Weil <sw@weilnetz.de>, Serge Hallyn <serge.hallyn@canonical.com>
Cc: "aliguori@us.ibm.com" <aliguori@us.ibm.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [BUG QEMU 1.1] virtio-9p-handle does not compile
Date: Thu, 07 Jun 2012 09:15:07 +0530	[thread overview]
Message-ID: <873967oke4.fsf@skywalker.in.ibm.com> (raw)
In-Reply-To: <4FCF855D.8050208@weilnetz.de>

Stefan Weil <sw@weilnetz.de> writes:

> Am 06.06.2012 12:50, schrieb Stefano Stabellini:
>> Hi Anthony,
>> currently QEMU 1.1 doesn't compile virtfs correctly on Ubuntu:
>>
.....

>
> The patch will fix the compiler error messages, but will the
> resulting code work? Maybe it has runtime dependencies
> (Linux kernel?) which should be checked at runtime.
>
> Would an enhanced test in configure be a better solution?
> It could disable VirtFS automatically if the definitions
> are missing.
>
> On Ubuntu Lenny, there is no definition for AT_EMPTY_PATH,
> not even in linux/fcntl.h.

We enable virtio-9p-handle only if open_by_handle_at is supported by
glibc. And if open_by_handle_at is supported by glibc AT_EMPTY_PATH
should also be there, because they all went in linux kernel for the same
feature set. So if glibc didn't pick AT_EMPTY_PATH definition and
took open_by_handle_at feature, it should be fixed in glibc.

BTW I am still not clear why including linux/fcntl.h gives those
compile errors. IMHO fixing those errors and including linux/fcntl.h in
virtio-9p-handle.c would be a better fix than redefining these constants.

-aneesh

  parent reply	other threads:[~2012-06-07  3:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 19:51 [Qemu-devel] [PATCH] virtio-9p-handle: define AT_EMPTY_PATH if needed Serge Hallyn
2012-06-06 10:50 ` [Qemu-devel] [BUG QEMU 1.1] virtio-9p-handle does not compile Stefano Stabellini
2012-06-06 16:29   ` Stefan Weil
2012-06-06 17:49     ` Serge Hallyn
2012-06-06 21:16       ` Stefan Weil
2012-06-06 21:30         ` Serge Hallyn
2012-06-07  3:45     ` Aneesh Kumar K.V [this message]
2012-06-06 17:49 ` [Qemu-devel] [PATCH] virtio-9p-handle: define AT_EMPTY_PATH if needed Aneesh Kumar K.V
2012-06-06 18:02   ` Serge Hallyn

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=873967oke4.fsf@skywalker.in.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=serge.hallyn@canonical.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=sw@weilnetz.de \
    /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.