Files
mirror_zfs/include/sys
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
..
2014-03-31 16:10:57 -07:00
2014-03-31 16:10:57 -07:00
2014-02-21 16:10:49 -08:00
2013-01-08 10:35:43 -08:00
2013-01-08 10:35:35 -08:00
2014-01-07 10:33:11 -08:00
2013-11-05 12:15:00 -08:00
2013-11-04 11:27:41 -08:00
2013-11-05 12:15:00 -08:00
2014-03-04 12:22:24 -08:00
2013-12-10 10:09:27 -08:00
2013-11-05 12:23:35 -08:00
2013-11-05 12:23:11 -08:00
2013-09-04 15:49:00 -07:00
2013-11-04 11:18:14 -08:00
2013-09-04 16:01:24 -07:00
2014-02-21 12:10:40 -08:00
2013-09-04 16:01:24 -07:00
2013-11-04 11:17:48 -08:00
2013-11-05 12:25:01 -08:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2013-09-04 16:01:24 -07:00
2012-03-07 16:28:00 -08:00
2014-02-21 12:10:40 -08:00
2013-11-04 10:55:25 -08:00
2011-02-10 09:21:43 -08:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2013-05-01 17:05:52 -07:00
2011-03-02 11:43:50 -08:00
2013-11-04 10:55:25 -08:00
2013-11-04 10:55:25 -08:00
2013-09-04 16:01:24 -07:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2011-02-10 09:27:21 -08:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2014-01-29 15:50:44 -08:00
2013-08-15 16:19:07 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-11-04 10:55:25 -08:00
2013-11-05 12:14:56 -08:00
2014-02-21 12:10:39 -08:00
2013-12-18 16:46:35 -08:00
2013-12-16 09:15:57 -08:00