summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_vnops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-13 20:52:40 +0000
committerphk <phk@FreeBSD.org>2001-05-13 20:52:40 +0000
commit0e2026a179a8ddbaee7396d4f7abb874b694c5dc (patch)
tree00838b103912b6244cf8b96f51682e6f25771a40 /sys/fs/devfs/devfs_vnops.c
parent4d2412868aeb5df5f17b6159e2ee675cf0609c8f (diff)
downloadFreeBSD-src-0e2026a179a8ddbaee7396d4f7abb874b694c5dc.zip
FreeBSD-src-0e2026a179a8ddbaee7396d4f7abb874b694c5dc.tar.gz
Convert DEVFS from an "opt-in" to an "opt-out" option.
If for some reason DEVFS is undesired, the "NODEVFS" option is needed now. Pending any significant issues, DEVFS will be made mandatory in -current on july 1st so that we can start reaping the full benefits of having it.
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r--sys/fs/devfs/devfs_vnops.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 80dfad8..fc0e392 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -1,4 +1,3 @@
-#define DEBUG 1
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,6 +34,9 @@
* $FreeBSD$
*/
+#include <opt_devfs.h>
+#ifndef NODEVFS
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
@@ -193,10 +195,6 @@ devfs_getattr(ap)
vap->va_nlink = de->de_links;
vap->va_fileid = de->de_inode;
-#ifdef DEBUG
- if (error)
- printf("devfs_getattr: return error %d\n", error);
-#endif
return (error);
}
@@ -711,3 +709,4 @@ static struct vnodeopv_desc devfs_specop_opv_desc =
{ &devfs_specop_p, devfs_specop_entries };
VNODEOP_SET(devfs_specop_opv_desc);
+#endif
OpenPOWER on IntegriCloud