bdev/passthru: read/write access

Change-Id: I541b5846f2c1c4acd2c7a6771147738112c8f803
Signed-off-by: John Kariuki <John.K.Kariuki@intel.com>
Reviewed-on: https://review.gerrithub.io/406118
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
John Kariuki 2016-02-23 12:41:55 -07:00 committed by Jim Harris
parent d798ac57a7
commit 8ac087613c

View File

@ -474,7 +474,7 @@ vbdev_passthru_examine(struct spdk_bdev *bdev)
sizeof(struct pt_io_channel)); sizeof(struct pt_io_channel));
SPDK_NOTICELOG("io_device created at: 0x%p\n", pt_node); SPDK_NOTICELOG("io_device created at: 0x%p\n", pt_node);
rc = spdk_bdev_open(bdev, false, vbdev_passthru_examine_hotremove_cb, rc = spdk_bdev_open(bdev, true, vbdev_passthru_examine_hotremove_cb,
bdev, &pt_node->base_desc); bdev, &pt_node->base_desc);
if (rc) { if (rc) {
SPDK_ERRLOG("could not open bdev %s\n", spdk_bdev_get_name(bdev)); SPDK_ERRLOG("could not open bdev %s\n", spdk_bdev_get_name(bdev));