Spdk/lib
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
..
bdev rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
blob blobstore: fix payload offset incrementation on operation split 2018-04-26 20:28:28 +00:00
blobfs blobfs: sync length if append occurs after cache eviction 2018-04-11 16:03:14 -04:00
conf conf: Remove use of perror() for strdup() failure 2017-12-15 16:13:27 -05:00
copy copy/ioat: reduce log level of informational messages 2018-04-06 18:31:54 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk app: pci_black/whitelist on global config and command line option 2018-04-30 17:25:41 +00:00
event rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
ioat scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
iscsi rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
json json: add va_arg versions for write_string and write_named_string 2018-02-23 15:27:16 -05:00
jsonrpc jsonrpc: convert send queue to singly linked tail queue 2018-04-12 00:11:35 -04:00
log rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
lvol lvol: Creating 2 lvols simultaneously with same name 2018-04-17 14:03:22 -04:00
nbd rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
net rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
nvme nvme: capture VS register at init time 2018-04-30 17:19:07 +00:00
nvmf Revert "nvmf: disconnect other connections if admin qpair disconnects." 2018-04-27 16:38:46 +00:00
rocksdb rocksdb: remove nonsensical fallocate #ifdef 2018-03-27 12:41:12 -04:00
rpc rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
scsi rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
trace app,lib: fix checking mmap return value 2018-03-30 16:18:34 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
vhost rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
virtio bdev/virtio: Abort on bad index in virtio_dev_queue_get_thread 2018-04-19 15:48:36 -04:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00