diff options
author | bouyer <bouyer@pkgsrc.org> | 2001-06-20 16:46:13 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2001-06-20 16:46:13 +0000 |
commit | e6d5e98612b7abe95f7f67c7f3c6f079ff4c35b0 (patch) | |
tree | 8735f86d5faa5c71b544b379fb0eb4187f99e57e /sysutils | |
parent | a2f17607f3dfac51510af68bf365b94018685ec6 (diff) | |
download | pkgsrc-e6d5e98612b7abe95f7f67c7f3c6f079ff4c35b0.tar.gz |
On NetBSD, the kernel issues a request sense if needed. So no need to
issue request sense from userland, just print the sense info we got
when the ioctl returned.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cdrecord/patches/patch-aj | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/cdrecord/patches/patch-aj b/sysutils/cdrecord/patches/patch-aj new file mode 100644 index 00000000000..af6b3bbaed6 --- /dev/null +++ b/sysutils/cdrecord/patches/patch-aj @@ -0,0 +1,25 @@ +$NetBSD: patch-aj,v 1.1 2001/06/20 16:46:13 bouyer Exp $ + +--- cdrecord/scsi_cdr.c.orig Wed Jun 20 16:35:42 2001 ++++ cdrecord/scsi_cdr.c Wed Jun 20 16:42:53 2001 +@@ -262,6 +262,12 @@ + request_sense(scgp) + SCSI *scgp; + { ++ ++#ifdef __NetBSD__ ++ /* request sense already done by kernel */ ++ scsiprsense((Uchar *)scgp->scmd->u_sense.cmd_sense, ++ scgp->scmd->sense_count); ++#else + char sensebuf[CCS_SENSE_LEN]; + register struct scg_cmd *scmd = scgp->scmd; + +@@ -282,6 +288,7 @@ + if (scsicmd(scgp) < 0) + return (-1); + scsiprsense((Uchar *)sensebuf, CCS_SENSE_LEN - scsigetresid(scgp)); ++#endif + return (0); + } + |