]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: report defined but unsupported osd ops
authorAlex Elder <elder@inktank.com>
Fri, 15 Feb 2013 17:42:30 +0000 (11:42 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 18 Feb 2013 18:20:22 +0000 (12:20 -0600)
commitbcf351838a22b40caeb2d9b38f4f990ac27bbcd1
treec94c7736f781c7807915fbe9d50d4277ed239c4b
parent6346b6ed221c7eed47796ec1095b7b9f7739048f
libceph: report defined but unsupported osd ops

If osd_req_encode_op() is given any opcode it doesn't recognize
it reports an error.

This patch fleshes out that routine to distinguish between
well-defined but unsupported values and values that are simply
bogus.

This and the next commit are related to:
    http://tracker.ceph.com/issues/4126

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/osd_client.c