summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/hast.h
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/hastd/hast.h
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/hastd/hast.h')
-rw-r--r--sbin/hastd/hast.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sbin/hastd/hast.h b/sbin/hastd/hast.h
index c7a6b49..b757994 100644
--- a/sbin/hastd/hast.h
+++ b/sbin/hastd/hast.h
@@ -239,6 +239,18 @@ struct hast_resource {
uint64_t hr_stat_flush;
/* Number of activemap updates. */
uint64_t hr_stat_activemap_update;
+ /* Number of local read errors. */
+ uint64_t hr_stat_read_error;
+ /* Number of local write errors. */
+ uint64_t hr_stat_write_error;
+ /* Number of local delete errors. */
+ uint64_t hr_stat_delete_error;
+ /* Number of flush errors. */
+ uint64_t hr_stat_flush_error;
+ /* Number of activemap write errors. */
+ uint64_t hr_stat_activemap_write_error;
+ /* Number of activemap flush errors. */
+ uint64_t hr_stat_activemap_flush_error;
/* Next resource. */
TAILQ_ENTRY(hast_resource) hr_next;
OpenPOWER on IntegriCloud