The Samba-Bugzilla – Attachment 7622 Details for
Bug 8974
Kernel oplocks are broken when uid(file) != uid(process)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch which fixes the issue even with a broken kernel
samba-linux-oplock-setsig.patch (text/plain), 576 bytes, created by
Etienne Dechamps
on 2012-06-04 19:09:22 UTC
(
hide
)
Description:
Patch which fixes the issue even with a broken kernel
Filename:
MIME Type:
Creator:
Etienne Dechamps
Created:
2012-06-04 19:09:22 UTC
Size:
576 bytes
patch
obsolete
>--- samba-3.6.5.orig/source3/smbd/oplock_linux.c >+++ samba-3.6.5/source3/smbd/oplock_linux.c >@@ -76,9 +76,14 @@ int linux_setlease(int fd, int leasetype > { > int ret; > >+ // We call linux_set_sighandler() each time to work around Linux kernel bug #43336 >+ // ("fcntl(F_SETLEASE) resets signal number when called multiple times") >+ >+ linux_set_lease_sighandler(fd); > ret = fcntl(fd, F_SETLEASE, leasetype); > if (ret == -1 && errno == EACCES) { > set_effective_capability(LEASE_CAPABILITY); >+ linux_set_lease_sighandler(fd); > ret = fcntl(fd, F_SETLEASE, leasetype); > } >
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 8974
: 7622 |
7652
|
7659
|
7664