Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/kqueue]: src/sys/miscfs/specfs spec_kqfilter(): return EOPNOTSUPP for !V...
details: https://anonhg.NetBSD.org/src/rev/03a0bdce7069
branches: kqueue
changeset: 512525:03a0bdce7069
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Sep 26 15:23:11 2002 +0000
description:
spec_kqfilter(): return EOPNOTSUPP for !VCHR case; block devices don't
support kevents, and we don't want to attempt to support for any other
files ending here neither (i.e. those which get spec vnodeops via vflush())
diffstat:
sys/miscfs/specfs/spec_vnops.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 7f48262ff044 -r 03a0bdce7069 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c Wed Sep 25 21:38:12 2002 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c Thu Sep 26 15:23:11 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.54.2.5 2002/09/06 08:48:42 jdolecek Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.54.2.6 2002/09/26 15:23:11 jdolecek Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.54.2.5 2002/09/06 08:48:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.54.2.6 2002/09/26 15:23:11 jdolecek Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -497,11 +497,11 @@
dev = ap->a_vp->v_rdev;
return (*cdevsw[major(dev)].d_kqfilter)(dev, ap->a_kn);
default:
-#if 1 /* XXXLUKEM; no genfs_kqfilter (yet) */
- return (0);
-#else
- return (genfs_kqfilter(v));
-#endif
+ /*
+ * Block devices don't support kqfilter, and refuse it
+ * for any other files (like those vflush()ed) too.
+ */
+ return (EOPNOTSUPP);
}
}
Home |
Main Index |
Thread Index |
Old Index