Source-Changes-HG archive

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

[src/trunk]: src/bin/mt Make tape cache ioctls available to userland command.



details:   https://anonhg.NetBSD.org/src/rev/1933ea4da06c
branches:  trunk
changeset: 993231:1933ea4da06c
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Sep 01 06:56:23 2018 +0000

description:
Make tape cache ioctls available to userland command.

diffstat:

 bin/mt/mt.1 |  6 +++++-
 bin/mt/mt.c |  6 ++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 083692c15e1c -r 1933ea4da06c bin/mt/mt.1
--- a/bin/mt/mt.1       Sat Sep 01 04:38:22 2018 +0000
+++ b/bin/mt/mt.1       Sat Sep 01 06:56:23 2018 +0000
@@ -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 @@
 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
diff -r 083692c15e1c -r 1933ea4da06c bin/mt/mt.c
--- a/bin/mt/mt.c       Sat Sep 01 04:38:22 2018 +0000
+++ b/bin/mt/mt.c       Sat Sep 01 06:56:23 2018 +0000
@@ -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 @@
 #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 @@
        { 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 }
 };
 



Home | Main Index | Thread Index | Old Index