copy-file now uses GNU/Linux file cloning
commit9b21d9f9110445846dce25c3505c4ee04572fade
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Sep 2016 19:51:27 +0000 (10 12:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Sep 2016 02:14:44 +0000 (10 19:14 -0700)
treee133e7d94a10ae19a7f8a4d44974a99151b0ca20
parent0fca290ddff9eabcd2e866b1361cd5b5ba868281
copy-file now uses GNU/Linux file cloning

From a suggestion by Kieran Colford (see Bug#23904).
* configure.ac: Check for linux/fs.h.
* src/fileio.c [HAVE_LINUX_FS_H]: Include sys/ioctl.h and linux/fs.h.
(clone_file): New function.
(Fcopy_file): Use it.
configure.ac
src/fileio.c