This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] POSIX_FADV_{DONTNEED,NOREUSE} defines on s390-64.


Martin Schwidefsky wrote:
> our testers noticed that the definitions of POSIX_FADV_DONTNEED and
> POSIX_FADV_NOREUSE of the glibc and the linux kernel differ.

And how did this happen?  You created the unified fcntl.h file.


> There
> are two options to fix this problem: in the glibc or in the kernel.
> I considered this for a while and came to the conclusion that this
> is better fixed in the glibc. To fix this in the kernel I'd need to
> analyse the arguments of the compat fadvise system call and change
> the 31 bit defines to the 64 bit defines. The 64 bit applications
> that are currently using DONTNEED and NOREUSE always get -EINVAL.
> Nobody complained so far.

The latter doesn't mean much since the behavior is not really visible.
Fixing it in glibc means that the values currently used are forever
taboo.  And it means existing binaries are broken.  If you change the
kernel, existing binaries magically start working and the only drawback
is that a program tested on a new kernel might perform differently on an
old kernel.

Changing glibc might be the simpler solution but it the least friendly
to users.  Can you reconsider it?

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]