Date: Fri, 15 Jul 2011 11:25:58 +0000 From: oleksandr@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r224269 - soc2011/oleksandr/oleksandr-head/head/sys/sys Message-ID: <20110715112558.4D91C106564A@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: oleksandr Date: Fri Jul 15 11:25:58 2011 New Revision: 224269 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224269 Log: Add new type of error: read and write, in devstat Modified: soc2011/oleksandr/oleksandr-head/head/sys/sys/devicestat.h Modified: soc2011/oleksandr/oleksandr-head/head/sys/sys/devicestat.h ============================================================================== --- soc2011/oleksandr/oleksandr-head/head/sys/sys/devicestat.h Fri Jul 15 11:21:16 2011 (r224268) +++ soc2011/oleksandr/oleksandr-head/head/sys/sys/devicestat.h Fri Jul 15 11:25:58 2011 (r224269) @@ -53,7 +53,8 @@ * userland utilities to determine whether or not they are in sync with the * kernel. */ -#define DEVSTAT_VERSION 6 +#define DEVSTAT_VERSION 6 +#define NUMBER_TYPE_ERRORS 2 /* * These flags specify which statistics features are supported or not @@ -99,7 +100,9 @@ */ typedef enum { DEVSTAT_ERROR_RETRIABLE = 0x01, - DEVSTAT_ERROR_NON_RETRIABLE = 0x02 + DEVSTAT_ERROR_NON_RETRIABLE = 0x02, + DEVSTAT_ERROR_READ_ERROR = 0x03, + DEVSTAT_ERROR_WRITE_ERROR = 0x04 } devstat_error_flags; /* * These types are intended to aid statistics gathering/display programs. @@ -137,10 +140,12 @@ /* * The structure that contains the disk errors counter. */ -struct devstat_device_error { +typedef struct { int retriable; int non_retriable; -}; + int read_error; + int write_error; +} devstat_device_error; /* * XXX: Next revision should add * off_t offset[DEVSTAT_N_TRANS_FLAGS]; @@ -171,7 +176,7 @@ * Time the device was * created. */ - struct devstat_device_error dev_error; /* Disk error structure.*/ + devstat_device_error dev_error; /* Disk error structure*/ u_int32_t block_size; /* Block size, bytes */ u_int64_t tag_types[3]; /* * The number of
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110715112558.4D91C106564A>