Alexander Motin
03618fe74d
MFV r319737: 6939 add sysevents to zfs core for commands
illumos/illumos-gate@ce1577b049
ce1577b049
https://www.illumos.org/issues/6939
Originally created https://smartos.org/bugview/OS-4489
sysevents should be fired in the kernel from ZFS whenever a command
is run that is logged in zpool history.
Example output
Terminal 1
root - gz sunos ~ # zfs create zones/foobar
root - gz sunos ~ # zfs set quota=10g zones/foobar
root - gz sunos ~ # zfs destroy zones/foobar
Terminal 2
root - gz sunos ~ # sysevent EC_zfs
nvlist version: 0
date = 2016-04-28T14:50:08.964Z
vendor = SUNW
publisher = zfs
class = EC_zfs
subclass = ESC_ZFS_history_event
pid = 0
data = (embedded nvlist)
nvlist version: 0
pool_name = zones
pool_guid = 0x40c964e8f9a7a694
history_record = (embedded nvlist)
nvlist version: 0
dsname = zones/foobar
dsid = 0x1525
history internal str =
internal_name = create
history txg = 0x4c4ef3
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Josh Wilsdon <jwilsdon@joyent.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: Alan Somers <asomers@gmail.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Matthew Ahrens <mahrens@delphix.com>
Author: Dave Eddy <dave@daveeddy.com>
2018-02-21 02:19:42 +00:00
..
2018-02-20 10:13:13 +00:00
2018-02-20 14:59:29 +00:00
2018-02-20 10:13:13 +00:00
2017-11-20 19:43:44 +00:00
2018-02-15 18:57:54 +00:00
2018-02-21 02:19:42 +00:00
2018-02-20 18:08:57 +00:00
2018-02-16 15:38:02 +00:00
2018-02-16 17:50:06 +00:00
2018-01-27 07:41:31 +00:00
2018-01-12 22:48:23 +00:00
2018-02-20 21:42:45 +00:00
2018-01-22 07:10:30 +00:00
2018-02-06 22:38:19 +00:00
2017-11-27 15:16:59 +00:00
2018-02-16 15:41:03 +00:00
2018-02-13 17:43:54 +00:00
2018-02-20 10:13:13 +00:00
2018-01-29 00:22:30 +00:00
2018-02-20 21:27:17 +00:00
2018-02-14 00:12:03 +00:00
2018-02-13 19:17:48 +00:00
2018-02-20 10:13:13 +00:00
2018-02-19 01:49:19 +00:00
2018-02-20 21:42:45 +00:00
2017-12-30 00:40:34 +00:00
2018-02-14 21:17:44 +00:00
2018-02-10 10:13:17 +00:00
2018-02-12 19:49:20 +00:00
2018-02-19 12:20:51 +00:00
2018-02-07 19:12:05 +00:00
2018-01-22 02:08:10 +00:00
2018-02-08 20:09:42 +00:00
2018-01-25 22:25:13 +00:00
2017-11-27 15:23:17 +00:00
2018-02-10 01:09:22 +00:00
2018-02-13 17:04:34 +00:00
2018-01-26 23:21:50 +00:00
2018-02-20 10:13:13 +00:00
2018-02-20 10:13:13 +00:00
2017-12-25 04:48:39 +00:00
2018-02-15 18:57:22 +00:00
2018-02-12 22:53:00 +00:00
2018-02-20 18:08:57 +00:00
2017-11-27 15:23:17 +00:00
2018-01-28 05:13:08 +00:00
2018-02-19 19:08:25 +00:00
2018-02-20 10:13:13 +00:00
2018-02-18 16:03:50 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2017-11-14 23:02:19 +00:00