Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 23:22:29 GMT
From:      Robert Wing <rew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ce22a792deed - main - autounmountd: set filter-specific flags for the EVFILT_FS filter
Message-ID:  <202103022322.122NMTeC087572@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rew:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce22a792deed226ba329005a3fc21b38255c689c

commit ce22a792deed226ba329005a3fc21b38255c689c
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2021-03-02 23:18:40 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2021-03-02 23:18:40 +0000

    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
---
 usr.sbin/autofs/autounmountd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103022322.122NMTeC087572>