Aaron Boxer
2011-May-23 23:24 UTC
[Samba] Can CIFS files in read only mode be cached by client?
Hello! I am writing a Linux server, and I want to pre-fetch a number of CIFS files and cache locally. The files are on a CIFS share mounted as read only. I was planning on opening the file, calling posix_fadvise(........,POSIX_FADV_WILLNEED) on the file descriptor, and then closing the file. Will this work? Is there a better way of doing this? Thanks!! Aaron
Possibly Parallel Threads
- [2.2-UNSTABLE] compilation error: 'POSIX_FADV_WILLNEED' undeclared
- [PATCH 1/2] utils, builder: Add wrappers for posix_fadvise.
- Message file prefetching to memory
- DO NOT REPLY [Bug 7004] New: Use posix_fadvise to free cached file contents when done
- CIFS VFS: Send error in read