diff options
author | pjd <pjd@FreeBSD.org> | 2005-12-08 23:00:31 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-12-08 23:00:31 +0000 |
commit | 7ea810fefd3d911625dc47f409893f6e8002662b (patch) | |
tree | 903e1d7b9e74fce821872209ba62c60f1f825cb2 /sbin/geom/class/nop/geom_nop.c | |
parent | db662ee84cbbb3fc11f9856828976f98ce589040 (diff) | |
download | FreeBSD-src-7ea810fefd3d911625dc47f409893f6e8002662b.zip FreeBSD-src-7ea810fefd3d911625dc47f409893f6e8002662b.tar.gz |
Teach NOP GEOM class how to gather the following statistics:
- number of read I/O requests,
- number of write I/O requests,
- number of read bytes,
- number of written bytes.
Add 'reset' subcommand for resetting statistics.
Diffstat (limited to 'sbin/geom/class/nop/geom_nop.c')
-rw-r--r-- | sbin/geom/class/nop/geom_nop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/geom/class/nop/geom_nop.c b/sbin/geom/class/nop/geom_nop.c index cf72f54..054d52d 100644 --- a/sbin/geom/class/nop/geom_nop.c +++ b/sbin/geom/class/nop/geom_nop.c @@ -68,5 +68,8 @@ struct g_command class_commands[] = { }, "[-fv] prov ..." }, + { "reset", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, + "[-v] prov ..." + }, G_CMD_SENTINEL }; |