Whamcloud - gitweb
LU-5827 mdt: do not crash server upon unsupported opc 97/12497/2
authorBobi Jam <bobijam.xu@intel.com>
Thu, 30 Oct 2014 12:29:47 +0000 (20:29 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Dec 2014 20:29:16 +0000 (20:29 +0000)
commit95e809e700e6cce6fc8cd8c3b245ff2b1daafdaa
tree376a1d7258ade2254fc4cb5f634c88c3ad30d34a
parent60be73013858bea29dec67fa11c91ea15fdbd912
LU-5827 mdt: do not crash server upon unsupported opc

mdt_handler_find() needs to check opc as well as whether we've defined
its handler to decide that the operation is supported.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Iefc2629cd4ad2d9df1b19ada7aa620282c5dab19
Reviewed-on: http://review.whamcloud.com/12497
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mdt/mdt_handler.c