9f9c7161c9
While not documented as such, spdk_bdev_module_claim_bdev() has always allowed a bdev that is opened read-only to remain read-only when claimed. This occurs when NULL is passed in place of an spdk_bdev_desc. This change updates the function's documentation to match the implementation and adds a unit test to ensure the current behavior remains. Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Ief26de60e4408bfe1aa60b7a4e1d8adf273470b6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11267 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
.gitignore | ||
Makefile | ||
unittest.sh |