diff options
author | joerg <joerg@FreeBSD.org> | 1996-10-05 17:40:20 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-10-05 17:40:20 +0000 |
commit | 43846dc5784472c87d6462b79859b034b98824fb (patch) | |
tree | 7983d87af538cf356d857eb334623ad28e2d0872 | |
parent | 5ab8a530e67068e8f677bcf642c67e7fec491212 (diff) | |
download | FreeBSD-src-43846dc5784472c87d6462b79859b034b98824fb.zip FreeBSD-src-43846dc5784472c87d6462b79859b034b98824fb.tar.gz |
When MODE SELECT'ing, the ``device-specific parameter'' field is
reserved by the SCSI-2 specs. Hence, zero it out. Some drives
(correctly) complain about this otherwise.
Reviewed by: craigs@os.com (Craig Shrimpton)
-rw-r--r-- | sbin/scsi/scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c index 52658c3..eb399a1 100644 --- a/sbin/scsi/scsi.c +++ b/sbin/scsi/scsi.c @@ -39,7 +39,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi.c,v 1.10 1995/07/30 12:58:47 joerg Exp $ + * $Id: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */ #include <stdio.h> @@ -820,7 +820,7 @@ mode_edit(int fd, int page, int edit, int argc, char *argv[]) bcopy((char *)mph, ((char *)mh) + sizeof(*mh), sizeof(*mph) + mph->page_length); - mh->bdl = 0; + mh->bdl = mh->dev_spec_par = 0; mph = (struct mode_page_header *) (((char *)mh) + sizeof(*mh)); mode_pars = ((char *)mph) + 2; |