]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r224086:
authorzack <zack@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 13 Aug 2011 17:21:50 +0000 (17:21 +0000)
committerzack <zack@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 13 Aug 2011 17:21:50 +0000 (17:21 +0000)
commit8ea915ceb6d6d22e2378323efe5a227cad32e876
tree1ead73616d32f2c293313d1ac91106954f55d843
parent1264b2fbb99cfa0b5017e338fd530ccc6c604e9f
MFC r224086:

Add DEXITCODE plumbing to NFS.

Isilon has the concept of an in-memory exit-code ring that saves the last exit
code of a function and allows for stack tracing. This is very helpful when
debugging tough issues.

This patch is essentially a no-op for BSD at this point, until we upstream
the dexitcode logic itself. The patch adds DEXITCODE calls to every NFS
function that returns an errno error code. A number of code paths were also
reorganized to have single exit paths, to reduce code duplication.

Submitted by:   David Kwan <dkwan@isilon.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@224851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
12 files changed:
sys/fs/nfs/nfs_commonacl.c
sys/fs/nfs/nfs_commonkrpc.c
sys/fs/nfs/nfs_commonport.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsdport.h
sys/fs/nfsserver/nfs_nfsdcache.c
sys/fs/nfsserver/nfs_nfsdkrpc.c
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nfsserver/nfs_nfsdserv.c
sys/fs/nfsserver/nfs_nfsdsocket.c
sys/fs/nfsserver/nfs_nfsdstate.c
sys/fs/nfsserver/nfs_nfsdsubs.c