mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
target: add helper to find se_device by dev_index
This adds a helper to find a se_device by dev_index. It will be used in the next patches so tcmu's netlink interface can execute commands on specific devices. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
committed by
Nicholas Bellinger
parent
0a5eee647b
commit
85441e6b8c
@@ -106,6 +106,8 @@ bool target_lun_is_rdonly(struct se_cmd *);
|
||||
sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd,
|
||||
sense_reason_t (*exec_cmd)(struct se_cmd *cmd));
|
||||
|
||||
struct se_device *target_find_device(int id, bool do_depend);
|
||||
|
||||
bool target_sense_desc_format(struct se_device *dev);
|
||||
sector_t target_to_linux_sector(struct se_device *dev, sector_t lb);
|
||||
bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib,
|
||||
|
||||
Reference in New Issue
Block a user