scsi: target: Add the DUMMY flag to rd_mcp
authorKonstantin Shelekhin <k.shelekhin@yadro.com>
Mon, 22 Mar 2021 20:09:37 +0000 (23:09 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Apr 2021 03:26:38 +0000 (23:26 -0400)
commit0aecfa662e4312046ece56bb5666796412abe8cb
tree02474599ceaf724cc0c20181b6e7ebed629ec7ab
parentbc3f2b42b70eb1b8576e753e7d0e117bbb674496
scsi: target: Add the DUMMY flag to rd_mcp

This commit adds the DUMMY flag to the rd_mcp backend that forces a logical
unit to report itself as not connected device of an unknown type.
Essentially this allows users to create devices identical to the device for
the virtual LUN 0, making it possible to explicitly create a LUN 0 device
and configure its WWNs (e.g. vendor or product name).

Link: https://lore.kernel.org/r/20210322200938.53300-2-k.shelekhin@yadro.com
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_rd.c
drivers/target/target_core_rd.h