freebsd-dev/cmd
Chris Dunlap 8c7aa0cfc4 Replace zpool_events_next() "block" parm w/ "flags"
zpool_events_next() can be called in blocking mode by specifying a
non-zero value for the "block" parameter.  However, the design of
the ZFS Event Daemon (zed) requires additional functionality from
zpool_events_next().  Instead of adding additional arguments to the
function, it makes more sense to use flags that can be bitwise-or'd
together.

This commit replaces the zpool_events_next() int "block" parameter with
an unsigned bitwise "flags" parameter.  It also defines ZEVENT_NONE
to specify the default behavior.  Since non-blocking mode can be
specified with the existing ZEVENT_NONBLOCK flag, the default behavior
becomes blocking mode.  This, in effect, inverts the previous use
of the "block" parameter.  Existing callers of zpool_events_next()
have been modified to check for the ZEVENT_NONBLOCK flag.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2
2014-03-31 16:11:21 -07:00
..
arcstat sighandler() should take 2 arguments 2014-03-20 11:03:46 -07:00
dbufstat Python 3 fixes 2013-11-08 14:30:29 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Add full SELinux support 2013-12-19 10:37:31 -08:00
vdev_id vdev_id: support per-channel slot mappings 2014-01-17 11:17:54 -08:00
zdb cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
zfs Enable /etc/mtab cache to improve performance 2014-01-07 09:48:09 -08:00
zhack Add missing libzfs_core to Makefiles 2013-11-20 15:44:15 -08:00
zinject Illumos #3120 zinject hangs in zfsdev_ioctl() due to uninitialized zc 2014-03-24 11:06:11 -07:00
zpios Fix error message in zpios 2014-01-29 15:11:56 -08:00
zpool Replace zpool_events_next() "block" parm w/ "flags" 2014-03-31 16:11:21 -07:00
zstreamdump Add missing libzfs_core to Makefiles 2013-11-20 15:44:15 -08:00
ztest Switch ztest mmap(2) ASSERTs to VERIFYs 2014-03-12 09:05:00 -07:00
zvol_id cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
Makefile.am Add dbufstat.py command 2013-10-25 14:52:45 -07:00