Module Name: src
Committed By: mlelstv
Date: Sat Sep 1 06:56:23 UTC 2018
Modified Files:
src/bin/mt: mt.1 mt.c
Log Message:
Make tape cache ioctls available to userland command.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/bin/mt/mt.1
cvs rdiff -u -r1.47 -r1.48 src/bin/mt/mt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/mt/mt.1
diff -u src/bin/mt/mt.1:1.36 src/bin/mt/mt.1:1.37
--- src/bin/mt/mt.1:1.36 Mon Mar 19 10:48:20 2012
+++ src/bin/mt/mt.1 Sat Sep 1 06:56:23 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: mt.1,v 1.36 2012/03/19 10:48:20 njoly Exp $
+.\" $NetBSD: mt.1,v 1.37 2018/09/01 06:56:23 mlelstv Exp $
.\"
.\" Copyright (c) 1981, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -184,6 +184,10 @@ If
is zero, disable compression.
Otherwise enable compression.
Not all tape drives support this feature.
+.It Cm cache
+Enable controller buffering.
+.It Cm nocache
+Disable controller buffering.
.El
.Pp
If a tape name is not specified, and the environment variable
Index: src/bin/mt/mt.c
diff -u src/bin/mt/mt.c:1.47 src/bin/mt/mt.c:1.48
--- src/bin/mt/mt.c:1.47 Mon Aug 29 14:46:01 2011
+++ src/bin/mt/mt.c Sat Sep 1 06:56:23 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: mt.c,v 1.47 2011/08/29 14:46:01 joerg Exp $ */
+/* $NetBSD: mt.c,v 1.48 2018/09/01 06:56:23 mlelstv Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#if 0
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: mt.c,v 1.47 2011/08/29 14:46:01 joerg Exp $");
+__RCSID("$NetBSD: mt.c,v 1.48 2018/09/01 06:56:23 mlelstv Exp $");
#endif
#endif /* not lint */
@@ -101,6 +101,8 @@ static const struct commands com[] = {
{ CMD("status"), MTIOCGET, MTNOP, 1, 0 },
{ CMD("weof"), MTIOCTOP, MTWEOF, 0, 1 },
{ CMD("eew"), MTIOCTOP, MTEWARN, 1, 0 },
+ { CMD("cache"), MTIOCTOP, MTCACHE, 1, 0 },
+ { CMD("nocache"), MTIOCTOP, MTNOCACHE, 1, 0 },
{ .c_name = NULL }
};