The Samba-Bugzilla – Attachment 15729 Details for
Bug 12033
smbd should support copy_file_range() for FSCTL_SRV_COPYCHUNK
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
waf check only part
0001-waf-check-for-copy_file_range-function-and-syscall.patch (text/plain), 1.13 KB, created by
Björn Jacke
on 2020-01-14 09:46:53 UTC
(
hide
)
Description:
waf check only part
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2020-01-14 09:46:53 UTC
Size:
1.13 KB
patch
obsolete
>From 77439eb9e8dd2d936a51817daba1768df8d81a78 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >Date: Tue, 14 Jan 2020 10:27:45 +0100 >Subject: [PATCH] waf: check for copy_file_range function and syscall > >Signed-off-by: Bjoern Jacke <bjacke@samba.org> >--- > source3/wscript | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/source3/wscript b/source3/wscript >index 62aa3495996d..27662e56a4a1 100644 >--- a/source3/wscript >+++ b/source3/wscript >@@ -1310,6 +1310,16 @@ ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED); > 'SYSCONF%s' % v, > msg='Checking whether sysconf(%s) is available' % v) > >+ if not conf.CHECK_FUNCS('copy_file_range', headers="unistd.h"): >+ conf.CHECK_CODE(''' >+#include <stdlib.h> >+#include <sys/syscall.h> >+#include <unistd.h> >+syscall(SYS_copy_file_range,0,NULL,0,NULL,0,0); >+ ''', >+ 'HAVE_SYSCALL_COPY_FILE_RANGE', >+ msg='Checking whether we have copy_file_range system call') >+ > conf.CHECK_CODE(''' > #include <sys/syscall.h> > #include <unistd.h> >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 12033
:
12912
|
15729
|
16669
|
16670
|
16671
|
16672