Spdk/test/unit/lib/bdev
Mike Gerdts a7eb6187e5 bdev: implement claims v2
This implements the v2 claims API. Compared to the original v1 claims,
v2 claims:

- Support read-write-once, read-write-many, and read-only-many claims.
- Are claimed with spdk_bdev_module_claim_desc().
- Are associated with a bdev descriptor that is passed to
  spdk_bdev_module_claim_bdev_desc().
- Are released upon close of the bdev descriptor used to obain the
  claim.
- Cannot be taken when a descriptor other than the one passed to
  spdk_bdev_module_claim_bdev_desc() has write access.

Later commits in this series are needed to fully integrate them with the
bdev subsystem.

Change-Id: I39a356f5893aa45ac346623ec9ce0ec659b38975
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15288
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-02-09 11:20:34 +00:00
..
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: implement claims v2 2023-02-09 11:20:34 +00:00
compress.c bdev/compress: Port to use accel_fw instead of compressdev 2023-01-20 10:26:21 +00:00
crypto.c bdev/crypto: Use accel framework 2023-01-19 22:00:58 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
mt bdev: Unify _resize_notify() and _remove_notify() 2023-01-31 15:28:37 +00:00
nvme bdev_nvme: record io paths' stat before being destroyed 2023-01-19 01:57:11 +00:00
part.c lib/part: check the return of spdk_bdev_register 2023-01-18 15:15:02 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_lvol.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_zone_block.c bdev: add claim type 2023-01-05 23:28:32 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00