Spdk/proto
Konrad Sztyber b7964a3c5a sma: forbid deleting devices with attached volumes
It makes it possible for stateless clients to send CreateDevice /
DeleteDevice each time a volume is attached / detached.  Deleting a
device with attached volumes results in FAILED_PRECONDITION error, which
a client can simply ignore.  The device will be deleted during the final
DeleteDevice call, once all volumes are detached.

We limit this behavior to device types that support AttachVolume /
DetachVolume methods, otherwise it would be impossible to delete such
devices.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I244b2b09455ec1430970c70f3fbb739cc9069754
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15670
Reviewed-by: Jing Yan <jing1.yan@intel.com>
Reviewed-by: Filip Szufnarowski <filip.szufnarowski@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-12-16 09:20:52 +00:00
..
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme.proto build: move protobuf files to a top-level directory 2022-10-18 07:23:54 +00:00
nvmf_tcp.proto build: move protobuf files to a top-level directory 2022-10-18 07:23:54 +00:00
nvmf.proto build: move protobuf files to a top-level directory 2022-10-18 07:23:54 +00:00
sma.proto sma: forbid deleting devices with attached volumes 2022-12-16 09:20:52 +00:00
virtio_blk.proto build: move protobuf files to a top-level directory 2022-10-18 07:23:54 +00:00