numam-spdk/include/spdk
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
..
assert.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
barrier.h barrier: added spdk_smp_*mb to sync between cores 2017-11-29 10:51:42 -05:00
bdev.h Make iteration over I/O types safe against further type additions. 2018-04-24 21:53:25 +00:00
bit_array.h include/bitarray: add comments for public APIs 2018-03-07 19:12:19 -05:00
blob_bdev.h bdev: rename spdk_bdev_module_if -> spdk_bdev_module 2018-03-13 00:55:12 -04:00
blob.h blobstore: clone-snapshot blobstore relations 2018-04-20 15:22:53 -04:00
blobfs.h include/blobfs.h: add comments for public APIs 2018-03-29 22:52:18 -04:00
conf.h include/conf: add comments for public APIs 2018-02-26 11:59:09 -05:00
copy_engine.h copy_engine: Support dump config text for IOAT config 2018-04-04 12:18:31 -04:00
cpuset.h include/cpuset.h: add comments for public APIs 2018-03-08 11:33:50 -05:00
crc16.h util/crc16: add crc16 library support and unit tests 2017-12-20 15:12:26 -05:00
crc32.h include: wrap header files in extern "C" for c++ 2017-12-07 19:13:47 -05:00
endian.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
env.h app: pci_black/whitelist on global config and command line option 2018-04-30 17:25:41 +00:00
event.h app: pci_black/whitelist on global config and command line option 2018-04-30 17:25:41 +00:00
fd.h include/fd.h: add comments for pubclic APIs 2018-01-04 12:12:10 -05:00
gpt_spec.h bdev/gpt: dump partition name 2017-07-12 18:12:52 -04:00
histogram_data.h util: enable dynamic spdk_histogram_data sizing 2017-12-29 14:20:48 -05:00
io_channel.h io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
ioat_spec.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
ioat.h include/ioat.h: add comments for public APIs 2018-03-14 13:02:06 -04:00
iscsi_spec.h iscsi: fix layout of logout request reason field 2017-09-22 16:11:11 -04:00
json.h json: add va_arg versions for write_string and write_named_string 2018-02-23 15:27:16 -05:00
jsonrpc.h rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
likely.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
log.h include/log.h: add comments for public APIs 2018-04-09 13:13:59 -04:00
lvol.h lvol: add snapshots and clones 2018-04-10 13:46:09 -04:00
mmio.h mmio: add functions for 1 and 2 byte I/O accesses 2017-10-13 10:46:00 -04:00
nbd.h nbd: add JSON config dump 2018-04-24 21:46:42 +00:00
net.h include/net.h: remove non public functions to private header file 2018-04-11 12:10:14 -04:00
nvme_intel.h include: move standard includes into spdk/stdinc.h 2017-05-08 10:11:01 -07:00
nvme_spec.h nvme_spec: add Transport SGL Data Block descriptor 2018-04-30 17:18:40 +00:00
nvme.h nvme: Use active namespace list for enumerating namespaces 2018-04-02 17:17:40 -04:00
nvmf_spec.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
nvmf.h nvmf: make spdk_nvmf_subsystem_remove_ns asynchronous 2018-04-18 15:41:00 -04:00
pci_ids.h bdev/virtio: added vhost-blk initiator 2018-03-02 13:41:38 -05:00
queue_extras.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
queue.h Add extern "C" wrapper to all public headers 2016-02-12 07:52:35 -07:00
rpc.h rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
scsi_spec.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
scsi.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
sock.h sock: add sock_group abstraction 2018-02-13 19:25:22 -05:00
stdinc.h build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
string.h util: add spdk_mem_all_zero() function 2018-02-23 10:05:32 -05:00
trace.h lib: Return instead of exit in trace 2018-03-13 00:53:35 -04:00
util.h util: add spdk_u32_is_pow2() function 2017-08-11 19:36:30 -04:00
uuid.h include/uuid.h: add comments for public APIs 2018-04-10 15:44:17 -04:00
version.h version: SPDK 18.07-pre 2018-04-30 16:44:19 +00:00
vhost.h vhost: add JSON config dump 2018-04-16 19:27:33 -04:00