Hi timo...
I Search in lib to see how the nfs_flush* works , and i see this too.
int nfs_safe_stat(const char *path, struct stat *buf);
can i use this too ? it's get a better handle with this + nfs_flush* before ?!
Tks !
2010/12/16 Timo Sirainen tss@iki.fi
On Thu, 2010-12-16 at 09:30 -0200, Alex Baule wrote:
I Made a plugin that's works fine in a Normal Partition and a GlusterFS enviroment too. in NFS it's intermitent, some times works, some times don't. Only the expunge part have this issue, i use stat to get the amont of hard link in a file. There is because of that (stat, hard link count) ?
No, hard links work fine with NFS. If you have multiple servers accessing the same storage via NFS, then it's possible that stat() result is cached and the hard link count may be out of date. You could try running nfs_flush_attr_cache_unlocked() before the stat(), but that doesn't work perfectly.