diff options
author | Ben Myers <bpm@sgi.com> | 2010-02-12 14:02:21 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-02-12 14:21:04 -0500 |
commit | 7b0e4faaf3169c69828d3f7769ed8ce9142e100b (patch) | |
tree | f174af3471072112481fd30a758fb858468a66b8 /support/nfs/cacheio.c | |
parent | 2ba89d65421cba255a0e75a7f646e4bbb2487193 (diff) | |
download | nfs-utils-7b0e4faaf3169c69828d3f7769ed8ce9142e100b.tar.gz nfs-utils-7b0e4faaf3169c69828d3f7769ed8ce9142e100b.tar.xz nfs-utils-7b0e4faaf3169c69828d3f7769ed8ce9142e100b.zip |
nfs-utils: don't fdatasync the rmtab
If we're using the new caching interface the rmtab will be ignored by
exportfs so there is no need to fdatasync. This improves mountd performance.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/cacheio.c')
-rw-r--r-- | support/nfs/cacheio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 6a6ed5a..bdf5d84 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -285,9 +285,8 @@ int readline(int fd, char **buf, int *lenp) int check_new_cache(void) { - struct stat stb; - return (stat("/proc/fs/nfs/filehandle", &stb) == 0) || - (stat("/proc/fs/nfsd/filehandle", &stb) == 0); + return (access("/proc/fs/nfs/filehandle", F_OK) == 0) || + (access("/proc/fs/nfsd/filehandle", F_OK) == 0); } |