scsi: target: Add device product id and revision configfs attributes
authorAlan Adamson <alan.adamson@oracle.com>
Fri, 1 Mar 2019 22:44:20 +0000 (14:44 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 18 Mar 2019 21:01:10 +0000 (17:01 -0400)
commit0322913cab79e47282fa98910559cbf6f3660b52
tree3627e89e0f384946bff363767ec4c3c903d7f7df
parent171f1887995b4f430962147ad42ec35631cf2525
scsi: target: Add device product id and revision configfs attributes

The product_id and revision attributes will allow for the modification of
the T10 Model and Revision strings returned in inquiry responses.  Its
value can be viewed and modified via the ConfigFS path at:

target/core/$backstore/$name/wwn/product_id
target/core/$backstore/$name/wwn/revision

[mkp: dropped parentheses as requested by Bart]

Signed-off-by: Alan Adamson <alan.adamson@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c