diff options
author | Konstantin Shelekhin <k.shelekhin@yadro.com> | 2021-03-22 23:09:37 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-04-06 06:26:38 +0300 |
commit | 0aecfa662e4312046ece56bb5666796412abe8cb (patch) | |
tree | 02474599ceaf724cc0c20181b6e7ebed629ec7ab /drivers/target/target_core_rd.h | |
parent | bc3f2b42b70eb1b8576e753e7d0e117bbb674496 (diff) | |
download | linux-0aecfa662e4312046ece56bb5666796412abe8cb.tar.xz |
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.h | 1 |
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; |