The Samba-Bugzilla – Attachment 2996 Details for
Bug 5103
Samba read of files cause appearance of modify via NFS, plays havoc on concurrent 'make'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
file lease test program
lease.c (text/plain), 705 bytes, created by
starlight
on 2007-11-24 12:43:21 UTC
(
hide
)
Description:
file lease test program
Filename:
MIME Type:
Creator:
starlight
Created:
2007-11-24 12:43:21 UTC
Size:
705 bytes
patch
obsolete
>#define _GNU_SOURCE > >#include <stdlib.h> >#include <stdio.h> >#include <fcntl.h> >#include <unistd.h> > >int main( > const int argc, > const char * const * const argv, > const char * const * const envp >) >{ > int fd; > int result; > fd = open(argv[1], O_RDWR, 0); > if (fd < 0) { > perror("open"); > exit(1); > } > > result = fcntl(fd, F_SETLEASE, F_WRLCK); > if (result != 0) { > perror("setlease wrlck"); > exit(1); > } > > usleep(10000000); > > result = fcntl(fd, F_SETLEASE, F_UNLCK); > if (result != 0) { > perror("setlease unlck"); > exit(1); > } > > result = close(fd); > if (result != 0) { > perror("close"); > exit(1); > } > > return 0; >}
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 5103
:
2994
|
2995
| 2996 |
3008