This allows registering an event to watch for changes to a file's
attributes. This is a bit imperfect as it would be nice to have a way
to determine if an fd can use EVFILT_VNODE successfully. mevent's
current structure does not permit that and a failure to register a
single kevent impacts several other kevents.
Details
Details
- Reviewers
grehan markj - Group Reviewers
bhyve - Commits
- rGd7e2c1479ccf: bhyve: Add support for EVFILT_VNODE mevents.
rG67d60dcce62c: bhyve: Add support for EVFILT_VNODE mevents.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
usr.sbin/bhyve/mevent.c | ||
---|---|---|
189 | GCC appears to be complaining about this: /exports/users/alr48/sources/freebsd/usr.sbin/bhyve/mevent.c:188:2: error: enumeration value 'EVF_READ' not handled in switch [-Werror=switch] switch (mevp->me_type) { ^~~~~~ /exports/users/alr48/sources/freebsd/usr.sbin/bhyve/mevent.c:188:2: error: enumeration value 'EVF_WRITE' not handled in switch [-Werror=switch] /exports/users/alr48/sources/freebsd/usr.sbin/bhyve/mevent.c:188:2: error: enumeration value 'EVF_TIMER' not handled in switch [-Werror=switch] /exports/users/alr48/sources/freebsd/usr.sbin/bhyve/mevent.c:188:2: error: enumeration value 'EVF_SIGNAL' not handled in switch [-Werror=switch] I guess it just needs a default case? |