]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68d4078e3f27a766416877907ae231bfd9bf3e4a
tree02474599ceaf724cc0c20181b6e7ebed629ec7ab
parentd04d4707f7e9d1499f76cd16432d0992de28765b
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