summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_rd.h
diff options
context:
space:
mode:
authorKonstantin Shelekhin <k.shelekhin@yadro.com>2021-03-22 23:09:37 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-04-05 23:26:38 -0400
commit0aecfa662e4312046ece56bb5666796412abe8cb (patch)
tree02474599ceaf724cc0c20181b6e7ebed629ec7ab /drivers/target/target_core_rd.h
parentbc3f2b42b70eb1b8576e753e7d0e117bbb674496 (diff)
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>
Diffstat (limited to 'drivers/target/target_core_rd.h')
-rw-r--r--drivers/target/target_core_rd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_rd.h b/drivers/target/target_core_rd.h
index 8b88f9b14c3f..9ffda5c4b584 100644
--- a/drivers/target/target_core_rd.h
+++ b/drivers/target/target_core_rd.h
@@ -28,6 +28,7 @@ struct rd_dev_sg_table {
#define RDF_HAS_PAGE_COUNT 0x01
#define RDF_NULLIO 0x02
+#define RDF_DUMMY 0x04
struct rd_dev {
struct se_device dev;