]> www.infradead.org Git - users/jedix/linux-maple.git/commit
target: add inquiry_product module param to override LIO default
authorKyle Fortin <kyle.fortin@oracle.com>
Tue, 13 Mar 2018 17:57:50 +0000 (13:57 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 22 Mar 2018 23:18:20 +0000 (16:18 -0700)
commitfb90110fa99f209d16a7c1bd21db92e562990e61
treebbf06d8d3560e54a1d11142f4bc8fc74ce08b791
parenta8c63cd8b78544cf132b7ed93dc21decd7392f88
target: add inquiry_product module param to override LIO default

Orabug: 27679431

OL6 iscsi target used IET which presented VIRTUAL-DISK for inquiry product.
OL7 uses the LIO iscsi target instead, which presented LIO iblock name.

Exadata targets upgrading from OL6 to OL7 need to present the same
product ID to existing iscsi initiator multipath mappings.

Add target_core_mod parameter inquiry_product for target inquiry vendor
string override.  It defaults to LIO iblock name.

The user will also need to do one of the following in targetcli:
set global export_backstore_name_as_model=false
or for each backstore:
/backstores/<type>/<name> set attribute emulate_model_alias=0

(cherry picked from commit faf91b95fd22dbf0a1a7fd5b18ab71a929385927)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_device.c
drivers/target/target_core_internal.h
drivers/target/target_core_spc.c