diff options
author | bouyer <bouyer@pkgsrc.org> | 2015-07-14 12:25:36 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2015-07-14 12:25:36 +0000 |
commit | 016d45e20fac263b8f43067715a91f4e42a6b134 (patch) | |
tree | 00f531fe01ff0cb08001ca86e316689307925db4 /sysutils/mtx/patches | |
parent | de7417f489e75c47b87fb766018649cf717fe80d (diff) | |
download | pkgsrc-016d45e20fac263b8f43067715a91f4e42a6b134.tar.gz |
After executing a scsi command reset the timeout to default value
(like other scsi backends do).
Bump PKGREVISION
Diffstat (limited to 'sysutils/mtx/patches')
-rw-r--r-- | sysutils/mtx/patches/patch-scsi_netbsd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/mtx/patches/patch-scsi_netbsd.c b/sysutils/mtx/patches/patch-scsi_netbsd.c index 4e9fb453584..3922b11930f 100644 --- a/sysutils/mtx/patches/patch-scsi_netbsd.c +++ b/sysutils/mtx/patches/patch-scsi_netbsd.c @@ -1,8 +1,8 @@ -$NetBSD: patch-scsi_netbsd.c,v 1.2 2015/07/10 13:33:41 bouyer Exp $ +$NetBSD: patch-scsi_netbsd.c,v 1.3 2015/07/14 12:25:36 bouyer Exp $ ---- /dev/null 2015-07-08 16:44:57.000000000 +0200 -+++ scsi_netbsd.c 2015-07-08 16:58:09.000000000 +0200 -@@ -0,0 +1,156 @@ +--- scsi_netbsd.c.orig 2015-07-14 13:48:44.000000000 +0200 ++++ scsi_netbsd.c 2015-07-14 13:58:53.000000000 +0200 +@@ -0,0 +1,157 @@ +/* Changes 2003 Steve Heck <steve.heck@am.sony.com> + Copyright 2007-2008 by Robert Nelson <robertn@the-nelsons.org> + @@ -135,6 +135,7 @@ $NetBSD: patch-scsi_netbsd.c,v 1.2 2015/07/10 13:33:41 bouyer Exp $ + req.senselen = SENSEBUFLEN; + req.senselen_used = 0; + ioctl_result = ioctl(DeviceFD, SCIOCCOMMAND, &req); ++ SCSI_Default_Timeout(); /* set it back to default, sigh. */ + + if (ioctl_result < 0) + { |