diff options
| author | Amar Tumballi <amar@gluster.com> | 2010-04-07 04:19:48 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-04-07 04:06:39 -0700 | 
| commit | 7cb8982cbbe8298cd1bdd35055f7d3818f4a136f (patch) | |
| tree | b4a78391ab49b030fb155314f6b487341bc7158d /libglusterfs/src/call-stub.c | |
| parent | d90c2f86ca7a8f6660e98da1e48c4798539b7d51 (diff) | |
backword compatibility with 3.0.x releases - restored
* glusterfs.h - added back the removed 'fop' types in same order
* call-stub.c - enhanced logging in case of failure
* server-protocol.c - added a ENOSYS function for these fops, so
                      there will be no crash if a old client
                      connects to mainline server.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 734 (keep only the working/usable code in build tree to focus more on development)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=734
Diffstat (limited to 'libglusterfs/src/call-stub.c')
| -rw-r--r-- | libglusterfs/src/call-stub.c | 40 | 
1 files changed, 16 insertions, 24 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c index ae67f59dc58..5f73d9d6e5c 100644 --- a/libglusterfs/src/call-stub.c +++ b/libglusterfs/src/call-stub.c @@ -2553,11 +2553,11 @@ call_resume_wind (call_stub_t *stub)          }  	default:  	{ -		gf_log ("call-stub", -			GF_LOG_DEBUG, -			"Invalid value of FOP"); +		gf_log ("call-stub", GF_LOG_ERROR, "Invalid value of FOP (%d)", +                        stub->fop); +                break;  	} -	break; +  	}  out:  	return; @@ -3371,13 +3371,12 @@ call_resume_unwind (call_stub_t *stub)                                  &stub->args.fsetattr_cbk.statpost);                  break;          } -	case GF_FOP_MAXVALUE: +        default:  	{ -		gf_log ("call-stub", -			GF_LOG_DEBUG, -			"Invalid value of FOP"); +		gf_log ("call-stub", GF_LOG_ERROR, "Invalid value of FOP (%d)", +                        stub->fop); +                break;  	} -	break;  	}  out:  	return; @@ -3681,15 +3680,12 @@ call_stub_destroy_wind (call_stub_t *stub)                          fd_unref (stub->args.fsetattr.fd);                  break;          } -	case GF_FOP_MAXVALUE: +        default:  	{ -		gf_log ("call-stub", -			GF_LOG_DEBUG, -			"Invalid value of FOP"); +		gf_log ("call-stub", GF_LOG_ERROR, "Invalid value of FOP (%d)", +                        stub->fop); +                break;  	} -	break; -	default: -		break;  	}  } @@ -3914,16 +3910,12 @@ call_stub_destroy_unwind (call_stub_t *stub)                  break;          } -	case GF_FOP_MAXVALUE: +        default:  	{ -		gf_log ("call-stub", -			GF_LOG_DEBUG, -			"Invalid value of FOP"); +		gf_log ("call-stub", GF_LOG_ERROR, "Invalid value of FOP (%d)", +                        stub->fop); +                break;  	} -	break; - -	default: -		break;  	}  }  | 
