mirror_zfs/lib/libzfs
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
..
libzfs_changelist.c Remove ZFC_IOC_*_MINOR ioctl()s 2013-12-16 09:15:57 -08:00
libzfs_config.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_dataset.c Remount datasets for "zfs inherit". 2014-03-24 11:11:15 -07:00
libzfs_diff.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_fru.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libzfs_graph.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_import.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libzfs_iter.c Illumos #4061 2013-11-05 12:24:10 -08:00
libzfs_mount.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libzfs_pool.c Replace zpool_events_next() "block" parm w/ "flags" 2014-03-31 16:11:21 -07:00
libzfs_sendrecv.c Remove ZFC_IOC_*_MINOR ioctl()s 2013-12-16 09:15:57 -08:00
libzfs_status.c Add generic errata infrastructure 2014-02-21 12:10:40 -08:00
libzfs_util.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
Makefile.am Fix libzfs_core changes to follow GNU libtool guidelines 2013-10-10 16:56:51 -07:00