Module Name:    src
Committed By:   jdolecek
Date:           Wed Apr  5 20:27:09 UTC 2017

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

Log Message:
write info about DKCACHE_FUA, DKCACHE_DPO in disk_getcache()


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sbin/dkctl/dkctl.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/dkctl/dkctl.c
diff -u src/sbin/dkctl/dkctl.c:1.24 src/sbin/dkctl/dkctl.c:1.25
--- src/sbin/dkctl/dkctl.c:1.24	Tue Jan 10 20:45:53 2017
+++ src/sbin/dkctl/dkctl.c	Wed Apr  5 20:27:09 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: dkctl.c,v 1.24 2017/01/10 20:45:53 christos Exp $	*/
+/*	$NetBSD: dkctl.c,v 1.25 2017/04/05 20:27:09 jdolecek Exp $	*/
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: dkctl.c,v 1.24 2017/01/10 20:45:53 christos Exp $");
+__RCSID("$NetBSD: dkctl.c,v 1.25 2017/04/05 20:27:09 jdolecek Exp $");
 #endif
 
 #include <sys/param.h>
@@ -307,6 +307,16 @@ disk_getcache(int argc, char *argv[])
 
 	printf("%s: cache parameters are %ssavable\n", dvname,
 	    (bits & DKCACHE_SAVE) ? "" : "not ");
+
+#ifdef DKCACHE_FUA
+	printf("%s: cache Force Unit Access (FUA) %ssupported\n", dvname,
+	    (bits & DKCACHE_FUA) ? "" : "not ");
+#endif /* DKCACHE_FUA */
+
+#ifdef DKCACHE_DPO
+	printf("%s: cache Disable Page Out (DPO) %ssupported\n", dvname,
+	    (bits & DKCACHE_DPO) ? "" : "not ");
+#endif /* DKCACHE_DPO */
 }
 
 static void

Reply via email to