diff options
| -rw-r--r-- | xlators/nfs/server/src/nfs3.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index fe265ed73f8..742c63aa208 100644 --- a/xlators/nfs/server/src/nfs3.c +++ b/xlators/nfs/server/src/nfs3.c @@ -250,12 +250,12 @@ out:                          goto erl;                                       \                  }                                                       \                                                                          \ -                if ((gf_nfs_dvm_off (nfs_state (nfs3st->nfsx)))) {      \ +                (fhd)->gfid[15] = 1;                                    \ +                (enam) = NULL;                                          \ +                if ((gf_nfs_dvm_off (nfs_state (nfs3st->nfsx))))        \                          (fhd)->exportid[15] = nfs_xlator_to_xlid ((nfs3st)->exportslist, fungexl);                                                 \ -                        (fhd)->gfid[15] = 1;                            \ -                        (enam) = NULL;                                  \ -                } else {                                                \ -                        if(!__nfs3_get_volume_id ((nfs3st), fungexl, (fhd)->exportid)) { \ +                else {                                                  \ +                        if(__nfs3_get_volume_id ((nfs3st), fungexl, (fhd)->exportid) < 0) { \                                  (nfsst) = NFS3ERR_STALE;                \                                  goto erl;                               \                          }                                               \  | 
