Displaying 2 results from an estimated 2 matches for "9open".
Did you mean:
open
2018 Feb 02
2
Does samba support fsync() a directory?
...PROT_READ) = 0
mprotect(0x7f27a257e000, 4096, PROT_READ) = 0
munmap(0x7f27a256b000, 73077) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f27a257c000
write(1, "open aaa\n", 9open aaa
) = 9
open("aaa", O_RDONLY|O_DIRECTORY) = 3
write(1, "sync aaa\n", 9sync aaa
) = 9
fsync(3) = -1 EINVAL (Invalid argument)
dup(2) = 4
fcntl(4, F_GETFL) = 0...
2018 Feb 02
4
Does samba support fsync() a directory?
Hi group:
I need some help!
I use samba 4.5.8
And I mount a samba directory from CentOS 7.
When I run such program in the mounted directory:
```
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
int main() {
printf("open aaa\n");
int fd = open("aaa", O_RDONLY |