diff options
Diffstat (limited to 'plpnfsd')
-rw-r--r-- | plpnfsd/mp_inode.c | 2 | ||||
-rw-r--r-- | plpnfsd/mp_pfs_ops.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plpnfsd/mp_inode.c b/plpnfsd/mp_inode.c index 2432dda..a78c779 100644 --- a/plpnfsd/mp_inode.c +++ b/plpnfsd/mp_inode.c @@ -20,7 +20,7 @@ #include <objc/hashtable.h> #define strdup NXCopyStringBuffer #endif -#define HASHSIZE 99 +#define HASHSIZE 999 static int nextinode = 6; static p_inode *numtab[HASHSIZE]; diff --git a/plpnfsd/mp_pfs_ops.c b/plpnfsd/mp_pfs_ops.c index 69191e6..9418c5d 100644 --- a/plpnfsd/mp_pfs_ops.c +++ b/plpnfsd/mp_pfs_ops.c @@ -681,7 +681,8 @@ nfsproc_getattr_2(struct nfs_fh *fh) if ((cp = search_cache(attrcache, inode->inode))) { debuglog("getattr: cache hit\n"); *fp = cp->attr; /* gotcha */ - return &res; + if (fp->nlink > 0) + return &res; } l = strlen(inode->name); |