The Samba-Bugzilla – Attachment 12940 Details for
Bug 12584
CIFS client sends wrong SMB2 TREE_CONNECT request on reconnect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
seekwrite source code
seekwrite.c (text/x-csrc), 547 bytes, created by
Jan-Marek Glogowski
on 2017-02-15 14:59:22 UTC
(
hide
)
Description:
seekwrite source code
Filename:
MIME Type:
Creator:
Jan-Marek Glogowski
Created:
2017-02-15 14:59:22 UTC
Size:
547 bytes
patch
obsolete
>#include <unistd.h> >#include <stdio.h> >#include <stdlib.h> >#include <sys/types.h> >#include <fcntl.h> > >#define FRAGMENT_SIZE 73 > >int main(int argc, char** argv) >{ > if (argc != 3) > { > printf("USAGE: seekwrite <filepath> <size>\n"); > exit(1); > } > > int fd = open(argv[1], O_CREAT|O_TRUNC|O_WRONLY, 0644 ); > size_t sz = atol(argv[2]); > char buf[FRAGMENT_SIZE]; > size_t cur; > for (cur = 0; cur < sz; cur+=FRAGMENT_SIZE) > { > (void) lseek64(fd, 0, SEEK_END); > (void) write(fd, buf, FRAGMENT_SIZE); > } > close(fd); > > 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 12584
:
12937
|
12938
|
12939
| 12940 |
12941