]> Pileus Git - ~andy/linux/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)
commit4c46459cae3b945e6e167f3f3a12b68f55cc5937
treec94c7736f781c7807915fbe9d50d4277ed239c4b
parent2979ddb11befcd757a6ab5a04fad9e264560385b
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