aboutsummaryrefslogtreecommitdiff
path: root/include/sg_cmds_extra.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2010-09-07 01:02:11 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2010-09-07 01:02:11 +0000
commit5a60336cc86a6b33a05583bce222da8de53d4838 (patch)
treeedffe92e8401f2db0b7985a36e6d0028ceda01fe /include/sg_cmds_extra.h
parentda5a89d37ebba0d5bddfda5bf2dd008a8bfc380a (diff)
downloadsg3_utils-5a60336cc86a6b33a05583bce222da8de53d4838.tar.gz
sg_referrals, first cut
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@351 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r--include/sg_cmds_extra.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h
index d3bf6c8f..5d038e2e 100644
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -167,6 +167,14 @@ extern int sg_ll_report_tgt_prt_grp(int sg_fd, void * resp,
extern int sg_ll_set_tgt_prt_grp(int sg_fd, void * paramp,
int param_len, int noisy, int verbose);
+/* Invokes a SCSI REPORT REFERRALS command. Return of 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> Report Referrals not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_ABORTED_COMMAND,
+ * SG_LIB_CAT_UNIT_ATTENTION, -1 -> other failure */
+extern int sg_ll_report_referrals(int sg_fd, uint64_t start_llba, int one_seg,
+ void * resp,int mx_resp_len, int noisy,
+ int verbose);
+
/* Invokes a SCSI SEND DIAGNOSTIC command. Foreground, extended self tests can
* take a long time, if so set long_duration flag. Return of 0 -> success,
* SG_LIB_CAT_INVALID_OP -> Send diagnostic not supported,