diff options
author | phk <phk@FreeBSD.org> | 2005-03-08 19:51:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-08 19:51:27 +0000 |
commit | 5493756155aebd45e98e60e97fdaf4874598d119 (patch) | |
tree | 8b0a6d9233241f0b00e1e2911bf1bc4bc659bccb /sys/fs/devfs | |
parent | 9cc1455d61dc71cdf7a49973845724d59c785bdf (diff) | |
download | FreeBSD-src-5493756155aebd45e98e60e97fdaf4874598d119.zip FreeBSD-src-5493756155aebd45e98e60e97fdaf4874598d119.tar.gz |
Remove kernelside support for devfs rules filtering on major numbers.
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r-- | sys/fs/devfs/devfs.h | 2 | ||||
-rw-r--r-- | sys/fs/devfs/devfs_rule.c | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h index 5a484c9..c8f1074 100644 --- a/sys/fs/devfs/devfs.h +++ b/sys/fs/devfs/devfs.h @@ -78,11 +78,9 @@ struct devfs_rule { int dr_icond; #define DRC_DSWFLAGS 0x001 #define DRC_PATHPTRN 0x002 -#define DRC_MAJOR 0x004 int dr_dswflags; /* cdevsw flags to match. */ #define DEVFS_MAXPTRNLEN 200 char dr_pathptrn[DEVFS_MAXPTRNLEN]; /* Pattern to match path. */ - int dr_major; /* Device major number. */ /* * Things to change. dr_iacts determines which of the other diff --git a/sys/fs/devfs/devfs_rule.c b/sys/fs/devfs/devfs_rule.c index 52dc013..5168efe 100644 --- a/sys/fs/devfs/devfs_rule.c +++ b/sys/fs/devfs/devfs_rule.c @@ -614,9 +614,6 @@ devfs_rule_match(struct devfs_krule *dk, struct devfs_dirent *de) if (dr->dr_icond & DRC_PATHPTRN) if (!devfs_rule_matchpath(dk, de)) goto nomatch; - if (dr->dr_icond & DRC_MAJOR) - if (dev == NULL || major(dev) != dr->dr_major) - goto nomatch; return (1); |