summaryrefslogtreecommitdiffstats
path: root/sbin/devfs/rule.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-27 17:22:36 +0000
committerphk <phk@FreeBSD.org>2005-02-27 17:22:36 +0000
commit537769f6992aad9ba96045b70cc1e5995b8b245e (patch)
treec75d117fc1de6974054510b8b0a1563d6435e2aa /sbin/devfs/rule.c
parent116d1ffddd7dc79adcdd883aa94fbfe19673bde6 (diff)
downloadFreeBSD-src-537769f6992aad9ba96045b70cc1e5995b8b245e.zip
FreeBSD-src-537769f6992aad9ba96045b70cc1e5995b8b245e.tar.gz
Remove filtering on major device number. These are assigned randomly
these days so filtering on them makes no sense other than as a foot-shooting device.
Diffstat (limited to 'sbin/devfs/rule.c')
-rw-r--r--sbin/devfs/rule.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sbin/devfs/rule.c b/sbin/devfs/rule.c
index d6b6ea3..e57f6de 100644
--- a/sbin/devfs/rule.c
+++ b/sbin/devfs/rule.c
@@ -357,12 +357,6 @@ rulespec_intok(struct devfs_rule *dr, int ac __unused, char **av,
warnx("pattern specified too long; truncated");
dr->dr_icond |= DRC_PATHPTRN;
av += 2;
- } else if (strcmp(av[0], "major") == 0) {
- if (av[1] == NULL)
- errx(1, "expecting argument for major");
- dr->dr_major = eatoi(av[1]);
- dr->dr_icond |= DRC_MAJOR;
- av += 2;
} else
break;
}
@@ -438,8 +432,6 @@ rulespec_outfp(FILE *fp, struct devfs_rule *dr)
fprintf(fp, " type %s", is->s);
if (dr->dr_icond & DRC_PATHPTRN)
fprintf(fp, " path %s", dr->dr_pathptrn);
- if (dr->dr_icond & DRC_MAJOR)
- fprintf(fp, " major %d", dr->dr_major);
if (dr->dr_iacts & DRA_BACTS) {
if (dr->dr_bacts & DRB_HIDE)
OpenPOWER on IntegriCloud