aboutsummaryrefslogtreecommitdiff
path: root/include/sg_cmds_extra.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2009-09-18 23:35:06 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2009-09-18 23:35:06 +0000
commit9e11e00479a4cd919028ecf226856e4c78c87354 (patch)
tree1de3dcb14a5496785d01a09c175a512a71e63339 /include/sg_cmds_extra.h
parent302a707e5073b1419bfe0097a1b76e1f70336ce9 (diff)
downloadsg3_utils-9e11e00479a4cd919028ecf226856e4c78c87354.tar.gz
start work on thin provisioning sbc3r20 additions
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@300 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r--include/sg_cmds_extra.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h
index 0ccde79f..2f095172 100644
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -68,6 +68,13 @@ extern int sg_ll_format_unit(int sg_fd, int fmtpinfo, int longlist,
int timeout_secs, void * paramp, int param_len,
int noisy, int verbose);
+/* Invokes a SCSI GET LBA STATUS command (SBC). Returns 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> GET LBA STATUS not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_ABORTED_COMMAND,
+ * SG_LIB_CAT_NOT_READY -> device not ready, -1 -> other failure */
+extern int sg_ll_get_lba_status(int sg_fd, uint64_t start_llba, void * resp,
+ int alloc_len, int noisy, int verbose);
+
/* Invokes a SCSI PERSISTENT RESERVE IN command (SPC). Returns 0
* when successful, SG_LIB_CAT_INVALID_OP if command not supported,
* SG_LIB_CAT_ILLEGAL_REQ if field in cdb not supported,