We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently directory handles which are used in OpenDir, ReadDir, FsyncDir are stored in memory and don’t survive restart of filestore-vhost service.
Simple C program to reproduce the bug:
#include <stdio.h> #include <dirent.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(int argc, char **argv) { int fd = open(argv[1], O_RDONLY); if (fd == -1) { perror("open"); return 1; } printf("press enter: "); fflush(stdout); char buffer[1024]; ssize_t bytes_read = read(STDIN_FILENO, buffer, sizeof(buffer)); if (bytes_read == -1) { perror("read"); return 1; } fsync(fd); DIR *dir = fdopendir(fd); if (dir == NULL) { perror("fdopendir"); return 1; } struct dirent *entry; while ((entry = readdir(dir)) != NULL) { printf("%s\n", entry->d_name); } closedir(dir); return 0; }
The text was updated successfully, but these errors were encountered:
budevg
qkrorlqr
No branches or pull requests
Currently directory handles which are used in OpenDir, ReadDir, FsyncDir are stored in memory and don’t survive restart of filestore-vhost service.
Simple C program to reproduce the bug:
The text was updated successfully, but these errors were encountered: