summaryrefslogtreecommitdiffstats
path: root/sbin/hastctl/hastctl.c
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-02-25 20:09:07 +0000
committertrociny <trociny@FreeBSD.org>2013-02-25 20:09:07 +0000
commit8690e69f6a4dba617b6c0fadf7cb2139a60500b8 (patch)
tree7c3a030feb23f647bd2528a4d8e72a4d5621913d /sbin/hastctl/hastctl.c
parent1f658c88bed0f72839a6caee6fdc9731cfd3a516 (diff)
downloadFreeBSD-src-8690e69f6a4dba617b6c0fadf7cb2139a60500b8.zip
FreeBSD-src-8690e69f6a4dba617b6c0fadf7cb2139a60500b8.tar.gz
Add i/o error counters to hastd(8) and make hastctl(8) display
them. This may be useful for detecting problems with HAST disks. Discussed with and reviewed by: pjd MFC after: 1 week
Diffstat (limited to 'sbin/hastctl/hastctl.c')
-rw-r--r--sbin/hastctl/hastctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/hastctl/hastctl.c b/sbin/hastctl/hastctl.c
index 0bd47f2..503072c 100644
--- a/sbin/hastctl/hastctl.c
+++ b/sbin/hastctl/hastctl.c
@@ -351,6 +351,12 @@ control_status(struct nv *nv)
(uint64_t)nv_get_uint64(nv, "stat_flush%u", ii));
printf(" activemap updates: %ju\n",
(uint64_t)nv_get_uint64(nv, "stat_activemap_update%u", ii));
+ printf(" local errors: "
+ "read: %ju, write: %ju, delete: %ju, flush: %ju\n",
+ (uintmax_t)nv_get_uint64(nv, "stat_read_error%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "stat_write_error%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "stat_delete_error%u", ii),
+ (uintmax_t)nv_get_uint64(nv, "stat_flush_error%u", ii));
}
return (ret);
}
OpenPOWER on IntegriCloud