aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mtio.h
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-01-21 01:34:14 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-01-21 01:34:14 +0000
commitb8db6f5c967941c1b08144a01ed48c2c0af844cb (patch)
tree988736502afa8e75056dd2e510742a61ba23194b /sys/sys/mtio.h
parentc310386321d9e59fcc2694397e46e46d8a1e21b2 (diff)
downloadsrc-b8db6f5c967941c1b08144a01ed48c2c0af844cb.tar.gz
src-b8db6f5c967941c1b08144a01ed48c2c0af844cb.zip
Make residuals signed.
PR: 24221
Notes
Notes: svn path=/head/; revision=71312
Diffstat (limited to 'sys/sys/mtio.h')
-rw-r--r--sys/sys/mtio.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/sys/mtio.h b/sys/sys/mtio.h
index 11c6e5877b62..94e516876793 100644
--- a/sys/sys/mtio.h
+++ b/sys/sys/mtio.h
@@ -117,6 +117,12 @@ struct mtget {
short mt_dsreg; /* ``drive status'' register */
short mt_erreg; /* ``error'' register */
/* end device-dependent registers */
+ /*
+ * Note that the residual count, while maintained, may be
+ * be nonsense because the size of the residual may (greatly)
+ * exceed 32 K-bytes. Use the MTIOCERRSTAT ioctl to get a
+ * more accurate count.
+ */
short mt_resid; /* residual count */
#if defined (__FreeBSD__)
daddr_t mt_blksiz; /* presently operating blocksize */
@@ -150,10 +156,10 @@ struct scsi_tape_errors {
* of issuing an MTIOCERRSTAT unlatches and clears them.
*/
u_int8_t io_sense[32]; /* Last Sense Data For Data I/O */
- u_int32_t io_resid; /* residual count from last Data I/O */
+ int32_t io_resid; /* residual count from last Data I/O */
u_int8_t io_cdb[16]; /* Command that Caused the Last Data Sense */
u_int8_t ctl_sense[32]; /* Last Sense Data For Control I/O */
- u_int32_t ctl_resid; /* residual count from last Control I/O */
+ int32_t ctl_resid; /* residual count from last Control I/O */
u_int8_t ctl_cdb[16]; /* Command that Caused the Last Control Sense */
/*
* These are the read and write cumulative error counters.