commit | a8dd0a37bc016cfb3ac75cf8484428573bb8d862 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Wed Mar 13 20:50:00 2013 -0500 |
committer | Sage Weil <sage@inktank.com> | Wed May 01 21:17:44 2013 -0700 |
tree | 4bd078753c105f3b1946457fdceb43f286f1b7cc | |
parent | adfe695a25e92e3a4597807fbc7f9a8105218776 [diff] |
libceph: define osd_req_opcode_valid() Define a separate function to determine the validity of an opcode, and use it inside osd_req_encode_op() in order to unclutter that function. Don't update the destination op at all--and return zero--if an unsupported or unrecognized opcode is seen in osd_req_encode_op(). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>