aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/sysevent/eventdefs.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2017-10-23 09:45:59 -0700
committerGitHub <[email protected]>2017-10-23 09:45:59 -0700
commitd5e024cba215ddbe433658e2d19e611eab33e2c9 (patch)
treed2ecac9cb0a32c54ce3fd0d198f579e4785b6acd /include/sys/sysevent/eventdefs.h
parent1cfdb0e6e401087778712fa893777b064a8afb6b (diff)
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 <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #6712 Closes #6486
Diffstat (limited to 'include/sys/sysevent/eventdefs.h')
-rw-r--r--include/sys/sysevent/eventdefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/sysevent/eventdefs.h b/include/sys/sysevent/eventdefs.h
index fc2687842..825d88a7b 100644
--- a/include/sys/sysevent/eventdefs.h
+++ b/include/sys/sysevent/eventdefs.h
@@ -101,6 +101,7 @@ extern "C" {
#define ESC_ZFS_POOL_CREATE "pool_create"
#define ESC_ZFS_POOL_DESTROY "pool_destroy"
#define ESC_ZFS_POOL_IMPORT "pool_import"
+#define ESC_ZFS_POOL_EXPORT "pool_export"
#define ESC_ZFS_VDEV_ADD "vdev_add"
#define ESC_ZFS_VDEV_ATTACH "vdev_attach"
#define ESC_ZFS_VDEV_CLEAR "vdev_clear"