When changes always come through kernel, timeouts
should be large.
* cached file *contents* will be invalidated as well.
*
* This flag should always be set when available. If all file changes
- * go through the kernel, *attr_timeout* should be set to zero to
- * avoid unneccessary getattr() calls.
+ * go through the kernel, *attr_timeout* should be set to a very large
+ * number to avoid unneccessary getattr() calls.
*
* This feature is enabled by default when supported by the kernel.
*/
*/
struct stat attr;
- /** Validity timeout (in seconds) for the attributes */
+ /** Validity timeout (in seconds) for inode attributes. If
+ attributes only change as a result of requests that come
+ through the kernel, this should be set to a very large
+ value. */
double attr_timeout;
- /** Validity timeout (in seconds) for the name */
+ /** Validity timeout (in seconds) for the name. If directory
+ entries are changed/deleted only as a result of requests
+ that come through the kernel, this should be set to a very
+ large value. */
double entry_timeout;
};