Fix 'zpool events' formatting for awk
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Sep 2010 23:30:54 +0000 (16:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Oct 2010 21:55:01 +0000 (14:55 -0700)
commitc5343ba71b9fea6e3636be25a16173092f2042ba
tree15d74a04d92e697719cd247f793b26ccbcac0415
parent312c07edfdbdbabfab7f721797bba8eade5dcdeb
Fix 'zpool events' formatting for awk

To make the 'zpool events' output simple to parse with awk the extra
newline after embedded nvlists has been dropped.  This allows the
entire event to be parsed as a single whitespace seperated record.

The -H option has been added to operate in scripted mode.  For the
'zpool events' command this means don't print the header.  The usage
of -H is consistent with scripted mode for other zpool commands.
cmd/zpool/zpool_main.c