Spdk/lib/bdev
Shuhei Matsumoto e008db08e7 rpc: Add state_mask to each RPC method to make sets of RPCs
Add state_mask to each RPC method and state to RPC server, respectively.
State mask of RPC method is set at registration. State of RPC server
is changed according to the state of the SPDK.

When any RPC method is recieved, if the bit of the RPC server is on in
the state mask of the RPC method, it is allowed. Otherwise, it is
rejected.

When any RPC is rejected by state_mask control, the new error code
is returned to describe the error clearly.

Change-Id: I84e52b8725a286e9329d61c56f498aa2c8664ec1
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/407397
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-05-03 19:48:15 +00:00
..
aio rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
error rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
gpt bdev/gpt: allocate buffer with correct alignment 2018-04-24 16:19:04 +00:00
iscsi iscsi_initiator: Make the disconnect in async mode. 2018-04-25 20:20:34 +00:00
lvol rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
malloc rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
null rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
nvme rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
passthru rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
pmem rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
rbd rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
rpc rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
split rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
virtio rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
bdev.c bdev/qos: Add unit tests for spdk_bdev_set_qos_limit_iops 2018-05-02 16:25:13 +00:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
part.c bdev: Wait for io device to unregister in bdev_part 2018-04-17 11:47:09 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00