nfs-workarounds.h revision c25356d5978632df6203437e1953bcb29e0c736f
#ifndef NFS_WORKAROUNDS_H
#define NFS_WORKAROUNDS_H
/* Note that some systems (Solaris) may use a macro to redefine struct stat */
/* When syscall fails with ESTALE error, how many times to try reopening the
file and retrying the operation. */
#define NFS_ESTALE_RETRY_COUNT 10
/* Same as open(), but try to handle ESTALE errors. */
/* Same as stat(), but try to handle ESTALE errors.
Doesn't flush attribute cache. */
/* Flush attribute cache for given path */
void nfs_flush_attr_cache(const char *path);
/* Flush attribute cache for given file descriptor.
The given path is used only for logging. */
/* Flush read cache for given fd. lock_type must be set to the file's current
fcntl locking state (F_UNLCK, F_RDLCK, F_WRLCK). Set just_locked=TRUE if the
file was locked at the same time as read cache flush was wanted (to avoid
re-locking the file unneededly). */
int lock_type, bool just_locked);
#endif