Allow 'zpool events' filtering by pool name

Additionally add four new tests:

 * zpool_events_clear: verify 'zpool events -c' functionality
 * zpool_events_cliargs: verify command line options and arguments
 * zpool_events_follow: verify 'zpool events -f'
 * zpool_events_poolname: verify events filtering by pool name

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #3285 
Closes #6762
This commit is contained in:
LOLi
2017-10-27 01:49:33 +02:00
committed by Brian Behlendorf
parent a032ac4b38
commit 88f9c9396b
16 changed files with 430 additions and 8 deletions
+2 -4
View File
@@ -68,8 +68,7 @@
.Ar pool device
.Nm
.Cm events
.Op Fl vHfc
.Op Ar pool
.Op Fl vHf Oo Ar pool Oc | Fl c
.Nm
.Cm export
.Op Fl a
@@ -1027,8 +1026,7 @@ command instead.
.It Xo
.Nm
.Cm events
.Op Fl cfHv
.Op Ar pool Ns ...
.Op Fl vHf Oo Ar pool Oc | Fl c
.Xc
Lists all recent events generated by the ZFS kernel modules. These events
are consumed by the