Source-Changes-HG archive

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

[src/trunk]: src/sbin/dkctl write info about DKCACHE_FUA, DKCACHE_DPO in disk...



details:   https://anonhg.NetBSD.org/src/rev/34b78cd5eca7
branches:  trunk
changeset: 352503:34b78cd5eca7
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Apr 05 20:27:09 2017 +0000

description:
write info about DKCACHE_FUA, DKCACHE_DPO in disk_getcache()

diffstat:

 sbin/dkctl/dkctl.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 666b075a200a -r 34b78cd5eca7 sbin/dkctl/dkctl.c
--- a/sbin/dkctl/dkctl.c        Wed Apr 05 20:15:49 2017 +0000
+++ b/sbin/dkctl/dkctl.c        Wed Apr 05 20:27:09 2017 +0000
@@ -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 @@
 
        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



Home | Main Index | Thread Index | Old Index