aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/autounmountd.c
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2021-03-02 23:18:40 +0000
committerRobert Wing <rew@FreeBSD.org>2021-03-02 23:18:40 +0000
commitce22a792deed226ba329005a3fc21b38255c689c (patch)
tree33a1b07cf0b5f29a1178d589fea242ca3c4d728d /usr.sbin/autofs/autounmountd.c
parent231633a2e9000d67b09f132ee26951a4621c778a (diff)
downloadsrc-ce22a792deed226ba329005a3fc21b38255c689c.tar.gz
src-ce22a792deed226ba329005a3fc21b38255c689c.zip
autounmountd: set filter-specific flags for the EVFILT_FS filter
Set the filter-specific flags VQ_MOUNT and VQ_UNMOUNT for the EVFILT_FS filter. The filter-specific flags for the EVFILT_FS filter are undocumented, but their usage can be found by looking up vfs_event_signal(). Reviewed by: trasz Differential Revision: https://reviews.freebsd.org/D28975
Diffstat (limited to 'usr.sbin/autofs/autounmountd.c')
-rw-r--r--usr.sbin/autofs/autounmountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/autofs/autounmountd.c b/usr.sbin/autofs/autounmountd.c
index 92bc8a03c96f..7a4f04c0b848 100644
--- a/usr.sbin/autofs/autounmountd.c
+++ b/usr.sbin/autofs/autounmountd.c
@@ -327,7 +327,7 @@ main_autounmountd(int argc, char **argv)
if (kq < 0)
log_err(1, "kqueue");
- EV_SET(&event, 0, EVFILT_FS, EV_ADD | EV_CLEAR, 0, 0, NULL);
+ EV_SET(&event, 0, EVFILT_FS, EV_ADD | EV_CLEAR, VQ_MOUNT | VQ_UNMOUNT, 0, NULL);
error = kevent(kq, &event, 1, NULL, 0, NULL);
if (error < 0)
log_err(1, "kevent");