target: Add device attribute to expose config_item_name for INQUIRY model
authorTregaron Bayly <tregaron@baylys.org>
Thu, 31 Jan 2013 22:30:24 +0000 (15:30 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Feb 2013 19:27:58 +0000 (11:27 -0800)
commitadfa9570a56c3dbfc2a28baab77ff6f0b8f480d3
tree3d0fcb992e2cf56c8a88cac6861c276f4ad7b088
parent0e48e7a5a345a727d5fd7a06bd6a9e6a67eae2bd
target: Add device attribute to expose config_item_name for INQUIRY model

This patch changes LIO to use the configfs backend device name as the
model if you echo '1' to an individual device's emulate_model_alias attribute.
This is a valid operation only on devices with an export count of 0.

Signed-off-by: Tregaron Bayly <tbayly@bluehost.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_internal.h
include/target/target_core_base.h