Module Name:    src
Committed By:   jakllsch
Date:           Sat Jan 12 02:53:00 UTC 2013

Modified Files:
        src/sbin/scsictl: scsictl.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/scsictl/scsictl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/scsictl/scsictl.c
diff -u src/sbin/scsictl/scsictl.c:1.36 src/sbin/scsictl/scsictl.c:1.37
--- src/sbin/scsictl/scsictl.c:1.36	Sat Jan 12 02:50:09 2013
+++ src/sbin/scsictl/scsictl.c	Sat Jan 12 02:52:59 2013
@@ -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 @@ device_format(int argc, char *argv[])
 	}
 
 	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

Reply via email to