]> granicus.if.org Git - zfs/commit
Emit history events for 'zpool create'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 23 Oct 2017 16:45:59 +0000 (09:45 -0700)
committerTony Hutter <hutter2@llnl.gov>
Tue, 5 Dec 2017 01:21:03 +0000 (17:21 -0800)
commit954516cec1817b6bd3755292594b8e3562d0156c
tree2e88f7da09482588bda904c4619066086033236c
parent841cb5ee2ae8f1d617cd1f6713c8394e3bb30127
Emit history events for 'zpool create'

History commands and events were being suppressed for the
'zpool create' command since the history object did not
yet exist.  Create the object earlier so this history
doesn't get lost.

Split the pool_destroy event in to pool_destroy and
pool_export so they may be distinguished.

Updated events_001_pos and events_002_pos test cases.  They
now check for the expected history events and were reworked
to be more reliable.

Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6712
Closes #6486
Conflicts:
tests/zfs-tests/tests/functional/events/events_002_pos.ksh
include/sys/spa.h
include/sys/sysevent/eventdefs.h
module/zfs/spa.c
module/zfs/spa_history.c
tests/zfs-tests/include/default.cfg.in
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/events/events_001_pos.ksh
tests/zfs-tests/tests/functional/events/events_002_pos.ksh
tests/zfs-tests/tests/functional/events/events_common.kshlib