NFS updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4647 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
11d16b5830
commit
02a72fde6c
@ -115,7 +115,7 @@ $(BIN): $(OBJS)
|
||||
done ; )
|
||||
|
||||
.depend: Makefile $(SRCS)
|
||||
@$(MKDEP) --dep-path . $(MMAPDEPPATH) $(FATDEPPATH) $(ROMFSDEPPATH) $(NXFFSDEPPATH) \
|
||||
@$(MKDEP) --dep-path . $(MMAPDEPPATH) $(FATDEPPATH) $(ROMFSDEPPATH) $(NXFFSDEPPATH) $(NFSDEPPATH) \
|
||||
$(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
@touch $@
|
||||
|
||||
|
@ -46,5 +46,5 @@ CSRCS += rpc_clnt.c nfs_socket.c nfs_util.c nfs_vfsops.c
|
||||
|
||||
# Argument for dependency checking
|
||||
|
||||
NFSDEPPATH = --dep-path rpc
|
||||
NFSDEPPATH = --dep-path nfs
|
||||
endif
|
||||
|
@ -48,6 +48,7 @@
|
||||
|
||||
#include <nuttx/fs/nfs.h>
|
||||
|
||||
#include "nfs.h"
|
||||
#include "rpc.h"
|
||||
#include "rpc_v2.h"
|
||||
#include "nfs_proto.h"
|
||||
@ -219,12 +220,12 @@ tryagain:
|
||||
if (error == ESTALE)
|
||||
{
|
||||
ndbg("%s: ESTALE on mount from server \n",
|
||||
nmp->nm_rpcclnt.rc_prog->prog_name);
|
||||
nmp->nm_rpcclnt->rc_prog->prog_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
ndbg("%s: unknown error %d from server \n",
|
||||
nmp->nm_rpcclnt.rc_prog->prog_name, error);
|
||||
nmp->nm_rpcclnt->rc_prog->prog_name, error);
|
||||
}
|
||||
|
||||
goto out;
|
||||
|
@ -69,6 +69,7 @@
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "nfs.h"
|
||||
#include "rpc_v2.h"
|
||||
#include "rpc.h"
|
||||
#include "nfs_proto.h"
|
||||
|
@ -269,46 +269,6 @@ struct nfsd_srvargs
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Stats structure */
|
||||
|
||||
struct nfsstats
|
||||
{
|
||||
uint64_t attrcache_hits;
|
||||
uint64_t attrcache_misses;
|
||||
uint64_t lookupcache_hits;
|
||||
uint64_t lookupcache_misses;
|
||||
uint64_t direofcache_hits;
|
||||
uint64_t direofcache_misses;
|
||||
uint64_t biocache_reads;
|
||||
uint64_t read_bios;
|
||||
uint64_t read_physios;
|
||||
uint64_t biocache_writes;
|
||||
uint64_t write_bios;
|
||||
uint64_t write_physios;
|
||||
uint64_t biocache_readlinks;
|
||||
uint64_t readlink_bios;
|
||||
uint64_t biocache_readdirs;
|
||||
uint64_t readdir_bios;
|
||||
uint64_t rpccnt[NFS_NPROCS];
|
||||
uint64_t rpcretries;
|
||||
uint64_t srvrpccnt[NFS_NPROCS];
|
||||
uint64_t srvrpc_errs;
|
||||
uint64_t srv_errs;
|
||||
uint64_t rpcrequests;
|
||||
uint64_t rpctimeouts;
|
||||
uint64_t rpcunexpected;
|
||||
uint64_t rpcinvalid;
|
||||
uint64_t srvcache_inproghits;
|
||||
uint64_t srvcache_idemdonehits;
|
||||
uint64_t srvcache_nonidemdonehits;
|
||||
uint64_t srvcache_misses;
|
||||
uint64_t forcedsync;
|
||||
uint64_t srvnqnfs_leases;
|
||||
uint64_t srvnqnfs_maxleases;
|
||||
uint64_t srvnqnfs_getleases;
|
||||
uint64_t srvvop_writes;
|
||||
};
|
||||
|
||||
#ifdef COMP
|
||||
/* The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
|
||||
* What should be in this set is open to debate, but I believe that since
|
||||
|
@ -41,6 +41,7 @@
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "net_internal.h"
|
||||
|
Loading…
Reference in New Issue
Block a user