aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--doc/sg_verify.86
-rw-r--r--src/sg_verify.c4
-rw-r--r--src/sg_vpd.c3
4 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 86de5ec5..b514ad03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@ Each utility has its own version number, date of last change and
some description at the top of its ".c" file. All utilities in the main
directory have their own "man" pages. There is also a sg3_utils man page.
-Changelog for sg3_utils-1.34 [20120927] [svn: r459]
+Changelog for sg3_utils-1.34 [20120929] [svn: r460]
- sg_xcopy: new dd like utility for extended copy command
- sg_copy_results: new utility for receive copy results
- sg_verify: add 16 byte cdb, bytchk (data-out buffer)
diff --git a/doc/sg_verify.8 b/doc/sg_verify.8
index 90f1e332..4947eb50 100644
--- a/doc/sg_verify.8
+++ b/doc/sg_verify.8
@@ -1,4 +1,4 @@
-.TH SG_VERIFY "8" "February 2012" "sg3_utils\-1.33" SG3_UTILS
+.TH SG_VERIFY "8" "September 2012" "sg3_utils\-1.34" SG3_UTILS
.SH NAME
sg_verify \- invoke SCSI VERIFY command(s) on a block device
.SH SYNOPSIS
@@ -43,7 +43,9 @@ this option is ignored if \fI\-\-bytchk=NDO\fR is given. Otherwise \fIBPC\fR
specifies the maximum number of blocks that will be verified by a single SCSI
VERIFY command. The default value is 128 blocks which equates to 64 KB for a
disk with 512 byte blocks. If \fIBPC\fR is less than \fICOUNT\fR then
-multiple SCSI VERIFY commands are sent to the device. For recent block
+multiple SCSI VERIFY commands are sent to the device. For the default
+VERIFY(10) \fIBPC\fR cannot exceed 0xffff (65,535) while for VERIFY(16)
+\fIBPC\fR cannot exceed 0x7fffffff (2,147,483,647). For recent block
devices (disks) this value may be constrained by the maximum transfer length
field in the block limits VPD page.
.TP
diff --git a/src/sg_verify.c b/src/sg_verify.c
index a8aee580..fbb7871c 100644
--- a/src/sg_verify.c
+++ b/src/sg_verify.c
@@ -27,7 +27,7 @@
* SCSI block device.
*/
-static char * version_str = "1.18 20120327";
+static char * version_str = "1.18 20120927";
#define ME "sg_verify: "
@@ -299,7 +299,7 @@ main(int argc, char * argv[])
}
vc = verify16 ? "VERIFY(16)" : "VERIFY(10)";
- for (; count > 0; count -= bpc, lba +=bpc) {
+ for (; count > 0; count -= bpc, lba += bpc) {
num = (count > bpc) ? bpc : count;
if (verify16)
res = sg_ll_verify16(sg_fd, vrprotect, dpo, bytchk > 0,
diff --git a/src/sg_vpd.c b/src/sg_vpd.c
index 5a5d1dad..2ae872fc 100644
--- a/src/sg_vpd.c
+++ b/src/sg_vpd.c
@@ -30,7 +30,7 @@
*/
-static char * version_str = "0.64 20120927"; /* spc4r36 + sbc3r32 */
+static char * version_str = "0.64 20120929"; /* spc4r36 + sbc3r32 */
extern void svpd_enumerate_vendor(void);
extern int svpd_decode_vendor(int sg_fd, int num_vpd, int subvalue,
@@ -608,6 +608,7 @@ decode_dev_ids_quiet(unsigned char * buff, int len, int m_assoc,
c_set = 1;
assoc = VPD_ASSOC_LU;
piv = 0;
+ is_sas = 0;
desig_type = 3;
i_len = 16;
off = 16;