This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2 v3] tst-fanotify: new simple test
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 3 Sep 2013 15:59:25 +0000
- Subject: Re: [PATCH 1/2 v3] tst-fanotify: new simple test
- Authentication-results: sourceware.org; auth=none
- References: <1377100993-9438-1-git-send-email-vapier at gentoo dot org> <1378178437-16147-1-git-send-email-vapier at gentoo dot org> <201309022323 dot 29991 dot vapier at gentoo dot org> <5225DD48 dot 7030601 at linux dot vnet dot ibm dot com>
On Tue, 3 Sep 2013, Adhemerval Zanella wrote:
> The minimum supported Linux kernel version for current GLIBC is 2.6.16
> and fanotify was added int 2.6.36 and enabled in 2.6.37. The test build
> is failing on older kernels that does not provides "linux/fanotify.h"
> (RHEL6 for instance). You will need to either disable the test
> altogether or sets it to return a dummy value if the kernel does not
> supports it.
You're confusing two different things. The minimum version for *running*
current glibc is 2.6.16, but the minimum *headers* version is 2.6.19.1,
and your issue is about the headers - the test already allows for fanotify
syscalls failing with ENOSYS. We could reasonably increase the minimum
kernel headers version to something much more recent (3.0?) - it's easy to
use new headers by specifying --with-headers when building glibc.
--
Joseph S. Myers
joseph@codesourcery.com