HomeFreeBSD

Add zpool_events_seek() functionality

Description

Add zpool_events_seek() functionality

The ZFS_IOC_EVENTS_SEEK ioctl was added to allow user space callers
to seek around the zevent file descriptor by EID. When a specific
EID is passed and it exists the cursor will be positioned there.
If the EID is no longer cached by the kernel ENOENT is returned.
The caller may also pass ZEVENT_SEEK_START or ZEVENT_SEEK_END to seek
to those respective locations.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Issue #2

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 22 2013, 10:52 PM
Parents
rGa2f1945ee3ce: Add a unique "eid" value to all zevents
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG75e3ff58feda: Add zpool_events_seek() functionality (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Mar 31 2014, 11:10 PM