]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: target: core: Add emulation for REPORT IDENTIFYING INFORMATION
authorGulam Mohamed <gulam.mohamed@oracle.com>
Mon, 1 Dec 2025 11:07:16 +0000 (11:07 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 02:07:22 +0000 (21:07 -0500)
commit7011e8aafe8c8fcc1c6f8bfcc6796f4530428e13
tree5d274fe4ecd6424d346337497964c9c7af2dfeb6
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
scsi: target: core: Add emulation for REPORT IDENTIFYING INFORMATION

Add emulation for REPORT IDENTIFYING INFORMATION command using the
configfs file 'pd_text_id_info' in target core module. The configfs file
is created in /sys/kernel/config/target/core/<backend type>/
<backing_store_name>/wwn/.

An emulation function, spc_emulate_report_id_info(), is defined to
return the identification string based on the contents of
'pd_text_id_info'.

The details of the REPORT IDENTIFYING INFORMATION command is defined in
section 6.32 of SPC4.

[mkp: checkpatch tweaks]

Signed-off-by: Gulam Mohamed <gulam.mohamed@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251201110716.227588-1-gulam.mohamed@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c
drivers/target/target_core_spc.c
include/target/target_core_base.h