1 Linux oplock support is conditional on HAVE_KERNEL_OPLOCKS_LINUX,
4 http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=23962&view=rev
5 --- source/modules/vfs_default.c.orig 2010-09-06 17:37:48.256826182 +0200
6 +++ source/modules/vfs_default.c 2010-09-06 17:38:25.300843377 +0200
9 START_PROFILE(syscall_linux_setlease);
12 +#ifdef HAVE_KERNEL_OPLOCKS_LINUX
13 /* first set the signal handler */
14 - if(linux_set_lease_sighandler(fd) == -1)
15 + if(linux_set_lease_sighandler(fd) == -1) {
19 result = linux_setlease(fd, leasetype);