scsi/bdev: fix wrong condition check for inquiry VPD page
Change-Id: I435825dbd6a7f990d702db9e0965a489f452cdc3 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
42491fb8fc
commit
6de5c05556
@ -620,7 +620,7 @@ spdk_bdev_scsi_inquiry(struct spdk_bdev *bdev, struct spdk_scsi_task *task,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SPDK_SPC_VPD_BLOCK_THIN_PROVISION: {
|
case SPDK_SPC_VPD_BLOCK_THIN_PROVISION: {
|
||||||
if (spdk_bdev_io_type_supported(bdev, SPDK_BDEV_IO_TYPE_UNMAP)) {
|
if (!spdk_bdev_io_type_supported(bdev, SPDK_BDEV_IO_TYPE_UNMAP)) {
|
||||||
SPDK_ERRLOG("unsupported INQUIRY VPD page 0x%x\n", pc);
|
SPDK_ERRLOG("unsupported INQUIRY VPD page 0x%x\n", pc);
|
||||||
goto inq_error;
|
goto inq_error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user