Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/scsictl We supply data with the FORMAT UNIT command, so...



details:   https://anonhg.NetBSD.org/src/rev/8b67db72273d
branches:  trunk
changeset: 783897:8b67db72273d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Jan 12 02:52:59 2013 +0000

description:
We supply data with the FORMAT UNIT command, so tell the kernel which
direction it is to go (write).

diffstat:

 sbin/scsictl/scsictl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6d68bb5cacba -r 8b67db72273d sbin/scsictl/scsictl.c
--- a/sbin/scsictl/scsictl.c    Sat Jan 12 02:50:09 2013 +0000
+++ b/sbin/scsictl/scsictl.c    Sat Jan 12 02:52:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $    */
+/*     $NetBSD: scsictl.c,v 1.37 2013/01/12 02:52:59 jakllsch Exp $    */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $");
+__RCSID("$NetBSD: scsictl.c,v 1.37 2013/01/12 02:52:59 jakllsch Exp $");
 #endif
 
 
@@ -575,7 +575,7 @@
        }
 
        scsi_command(fd, &cmd, sizeof(cmd), &dfl, sizeof(dfl),
-           8 * 60 * 60 * 1000, 0);
+           8 * 60 * 60 * 1000, SCCMD_WRITE);
 
        /*
         * Poll device for completion of Format



Home | Main Index | Thread Index | Old Index