All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: gollub@b1-systems.de, lcapitulino@redhat.com,
	qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] buildbot failure in qemu on default_x86_64_rhel5
Date: Sat, 01 Oct 2011 14:28:47 +0530	[thread overview]
Message-ID: <87pqih2im0.fsf@skywalker.in.ibm.com> (raw)
In-Reply-To: <CAJSP0QU_+oJ6Wv55XSOxqJWc0fw2xhAo46UuUiB2sFkiHhpyng@mail.gmail.com>

On Fri, 30 Sep 2011 09:26:53 +0100, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Fri, Sep 30, 2011 at 12:28 AM,  <qemu@buildbot.b1-systems.de> wrote:
> > The Buildbot has detected a new failure on builder default_x86_64_rhel5 while building qemu.
> > Full details are available at:
> >  http://buildbot.b1-systems.de/qemu/builders/default_x86_64_rhel5/builds/24
> 
> Build error on RHEL 5 in virtio-9p-handle.c:
> /home/buildbot/slave-public/default_x86_64_rhel5/build/hw/9pfs/virtio-9p-handle.c:
> In function 'handle_utimensat':
> /home/buildbot/slave-public/default_x86_64_rhel5/build/hw/9pfs/virtio-9p-handle.c:377:
> warning: implicit declaration of function 'futimens'
> /home/buildbot/slave-public/default_x86_64_rhel5/build/hw/9pfs/virtio-9p-handle.c:377:
> warning: nested extern declaration of 'futimens'
> 
> RHEL 5 only has glibc 2.5 but futimens(2) was introduced in glibc 2.6.

We can make handle only available to glibc 2.6 and above . Handle fs
drive will anyhow require a 2.6.39 kernel. Something like.


diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c
index 860b0e3..a7a8930 100644
--- a/hw/9pfs/virtio-9p-handle.c
+++ b/hw/9pfs/virtio-9p-handle.c
@@ -390,7 +390,13 @@ static int handle_utimensat(FsContext *ctx, V9fsPath *fs_path,
     if (fd < 0) {
         return fd;
     }
+#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 6
+    /* futimens is only available with glibc 2.6 and above.*/
     ret = futimens(fd, buf);
+#else
+    ret  = -1;
+    errno = ENOSYS;
+#endif
     close(fd);
     return ret;
 }
@@ -591,8 +597,16 @@ static int handle_init(FsContext *ctx)
     int ret, mnt_id;
     struct statfs stbuf;
     struct file_handle fh;
-    struct handle_data *data = g_malloc(sizeof(struct handle_data));
+    struct handle_data *data;
 
+#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 6
+    /*
+     * We support only above glibc 2.6. Older distro will anyhow
+     * not have handle syscall support in the kernel.
+     */
+    return -1;
+#endif
+    data = g_malloc(sizeof(struct handle_data));
     data->mountfd = open(ctx->fs_root, O_DIRECTORY);
     if (data->mountfd < 0) {
         ret = data->mountfd;

  reply	other threads:[~2011-10-01  8:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-29 23:28 [Qemu-devel] buildbot failure in qemu on default_x86_64_rhel5 qemu
2011-09-30  8:26 ` Stefan Hajnoczi
2011-10-01  8:58   ` Aneesh Kumar K.V [this message]
2011-10-01  9:33     ` Aneesh Kumar K.V
2011-10-03  7:37       ` Stefan Hajnoczi
2011-10-03 10:40         ` Aneesh Kumar K.V
2011-10-04  7:18           ` Stefan Hajnoczi
2011-10-04  8:48             ` Aneesh Kumar K.V
2011-10-04 10:29               ` Stefan Hajnoczi
  -- strict thread matches above, loose matches on Subject: below --
2012-12-13 22:27 qemu
2012-05-14 23:58 qemu
2012-02-26  0:07 qemu
2011-12-13  0:06 qemu
2011-11-23  0:09 qemu
2011-11-22 23:53 ` Alexander Graf
2011-11-23  8:36   ` Stefan Hajnoczi
2011-09-05 23:24 qemu

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=87pqih2im0.fsf@skywalker.in.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=agraf@suse.de \
    --cc=gollub@b1-systems.de \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.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.