]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
Clarify zpool_events_next() comment
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 23 Nov 2013 00:00:39 +0000 (16:00 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Mar 2014 23:11:08 +0000 (16:11 -0700)
commit9b101a73203faecdc6d466fe446d787bc341ee14
tree3f66497e6384d35b89dbd89ed06b229a15e13967
parent75e3ff58feda2d836c4546c5dc2e98fcd2d1a67b
Clarify zpool_events_next() comment

Due to the very poorly chosen argument name 'cleanup_fd' it was
completely unclear that this file descriptor is used to track the
current cursor location.  When the file descriptor is created by
opening ZFS_DEV a private cursor is created in the kernel for the
returned file descriptor.  Subsequent calls to zpool_events_next()
and zpool_events_seek() then require the file descriptor as an
argument to reposition the cursor.  When the file descriptor is
closed the kernel state tracking the cursor is destroyed.

This patch contains no functional change, it just changes a
few variable names and clarifies the documentation.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Issue #2
cmd/zpool/zpool_main.c
lib/libzfs/libzfs_pool.c
module/zfs/zfs_ioctl.c