summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2018-12-05 13:18:38 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-07 21:54:33 -0500
commit3beeabd5f2d1fc7a48cb887a298bc412789a1f68 (patch)
tree4e90eb51a61c20ba599ac9063cf4a73028956607 /tools
parent2d882847280e3ae1ddc95175d0fc2006e11bb63f (diff)
downloadlinux-3beeabd5f2d1fc7a48cb887a298bc412789a1f68.tar.gz
linux-3beeabd5f2d1fc7a48cb887a298bc412789a1f68.tar.bz2
linux-3beeabd5f2d1fc7a48cb887a298bc412789a1f68.zip
scsi: target: perform t10_wwn ID initialisation in target_alloc_device()
Initialise the t10_wwn vendor, model and revision defaults when a device is allocated instead of when it's enabled. This ensures that custom vendor or model strings set prior to enablement are not later overwritten with default values. The TRANSPORT_FLAG_PASSTHROUGH conditional can be dropped for the following reasons: - target_core_pscsi overwrites the defaults in the pscsi_configure_device() callback. + the contents is then only used for ConfigFS via $pscsi_dev/statistics/scsi_lu/vend, etc. - target_core_user doesn't touch the defaults, nor are they used for anything outside of ConfigFS. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions