bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] copy-file-range: new module


From: Bruno Haible
Subject: Re: [PATCH 1/2] copy-file-range: new module
Date: Sat, 29 Jun 2019 00:46:51 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-151-generic; KDE/5.18.0; x86_64; ; )

Florian Weimer wrote:
> > In the NEWS entry, Florian writes:
> >
> >    Applications which use the
> >    copy_file_range function will have to be run on kernels which implement
> >    the copy_file_range system call.
> >
> > I find this misleading. Coreutils will want to continue to use
> > copy_file_range whenever the libc provides this function, and at the
> > same time be able to run on all Linux kernel versions.
> 
> What's misleading about it?  If you want copy_file_range functionality,
> you will need an implementation of it, and since glibc no longer
> contains one after this change, you need one from the kernel.

Like Paul said: Any reliable use of copy_file_range will need to be
followed by fallback code that does the copy through user-space.

> You can still call the function, of course, but it's use is really
> limited because it sets errno ENOSYS and returns -1.

Yes. This information is missing from the NEWS entry that you added.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]