diff options
| author | Shehjar Tikoo <shehjart@gluster.com> | 2010-07-27 06:16:51 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-28 02:24:45 -0700 | 
| commit | 045efc1f5d59d98fff28ea29039ead4015fe1e6b (patch) | |
| tree | 3115142b7639a3e24dd57fbd0fbdc289f6382fef | |
| parent | ba98d9f472979d4bd648933b7940eb20e3c82116 (diff) | |
nfs3: Error returns must check for <0, not == -1
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 854 (nfs server didn't start)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=854
| -rw-r--r-- | xlators/nfs/server/src/nfs3.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 630760953..812bb8372 100644 --- a/xlators/nfs/server/src/nfs3.c +++ b/xlators/nfs/server/src/nfs3.c @@ -108,7 +108,7 @@  #define nfs3_check_fh_resolve_status(cst, nfstat, erlabl)               \          do {                                                            \ -                if ((cst)->resolve_ret == -1) {                         \ +                if ((cst)->resolve_ret < 0) {                           \                          nfstat = nfs3_errno_to_nfsstat3 (cst->resolve_errno);\                          goto erlabl;                                    \                  }                                                       \ @@ -116,7 +116,7 @@  #define nfs3_check_new_fh_resolve_status(cst, nfstat, erlabl)           \          do {                                                            \ -                if (((cst)->resolve_ret == -1) &&                       \ +                if (((cst)->resolve_ret < 0) &&                         \                      ((cst)->resolve_errno != ENOENT)) {                 \                          nfstat = nfs3_errno_to_nfsstat3 (cs->resolve_errno);\                          goto erlabl;                                    \  | 
