From 8690e69f6a4dba617b6c0fadf7cb2139a60500b8 Mon Sep 17 00:00:00 2001 From: trociny Date: Mon, 25 Feb 2013 20:09:07 +0000 Subject: 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 --- sbin/hastd/hast.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sbin/hastd/hast.h') 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; -- cgit v1.1