summaryrefslogtreecommitdiffstats
path: root/sys
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
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')
-rw-r--r--sys/alpha/conf/GENERIC1
-rw-r--r--sys/alpha/conf/NOTES1
-rw-r--r--sys/amd64/conf/GENERIC1
-rw-r--r--sys/conf/NOTES2
-rw-r--r--sys/conf/files6
-rw-r--r--sys/conf/options2
-rw-r--r--sys/fs/devfs/devfs_devs.c2
-rw-r--r--sys/fs/devfs/devfs_vfsops.c2
-rw-r--r--sys/fs/devfs/devfs_vnops.c9
-rw-r--r--sys/i386/conf/GENERIC1
-rw-r--r--sys/i386/conf/NEWCARD1
-rw-r--r--sys/i386/conf/NOTES2
-rw-r--r--sys/ia64/conf/GENERIC1
-rw-r--r--sys/pc98/conf/GENERIC1
14 files changed, 14 insertions, 18 deletions
diff --git a/sys/alpha/conf/GENERIC b/sys/alpha/conf/GENERIC
index 21edd45..388a333 100644
--- a/sys/alpha/conf/GENERIC
+++ b/sys/alpha/conf/GENERIC
@@ -58,7 +58,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
diff --git a/sys/alpha/conf/NOTES b/sys/alpha/conf/NOTES
index 21edd45..388a333 100644
--- a/sys/alpha/conf/NOTES
+++ b/sys/alpha/conf/NOTES
@@ -58,7 +58,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC
index 2dada59..3421fdb 100644
--- a/sys/amd64/conf/GENERIC
+++ b/sys/amd64/conf/GENERIC
@@ -40,7 +40,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 810420a..14302b2 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -672,7 +672,7 @@ options PORTAL #Portal filesystem
options PROCFS #Process filesystem
options UMAPFS #UID map filesystem
options UNION #Union filesystem
-options DEVFS #devices filesystem
+# options NODEVFS #disable devices filesystem
# The xFS_ROOT options REQUIRE the associated ``options xFS''
options NFS_ROOT #NFS usable as root device
# This code enables IFS, an FFS which exports inodes as the namespace.
diff --git a/sys/conf/files b/sys/conf/files
index b0fe74d..92b19c8 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -585,9 +585,9 @@ dev/wds/wd7000.c optional wds isa
dev/wi/if_wi.c optional wi card
dev/wi/if_wi.c optional wi pccard
dev/xe/if_xe.c optional xe card
-fs/devfs/devfs_vnops.c optional devfs
-fs/devfs/devfs_vfsops.c optional devfs
-fs/devfs/devfs_devs.c optional devfs
+fs/devfs/devfs_vnops.c standard
+fs/devfs/devfs_vfsops.c standard
+fs/devfs/devfs_devs.c standard
fs/hpfs/hpfs_vfsops.c optional hpfs
fs/hpfs/hpfs_vnops.c optional hpfs
fs/hpfs/hpfs_hash.c optional hpfs
diff --git a/sys/conf/options b/sys/conf/options
index 9ed2314..74f54ee 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -62,7 +62,7 @@ CY_PCI_FASTINTR
DDB
DDB_UNATTENDED opt_ddb.h
GDB_REMOTE_CHAT opt_ddb.h
-DEVFS
+NODEVFS opt_devfs.h
HW_WDOG
KTRACE
LIBICONV
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c
index 4dfd0e5..224ca07 100644
--- a/sys/fs/devfs/devfs_devs.c
+++ b/sys/fs/devfs/devfs_devs.c
@@ -30,6 +30,7 @@
*/
#include "opt_devfs.h"
+#ifndef NODEVFS
#include <sys/param.h>
#include <sys/systm.h>
@@ -431,3 +432,4 @@ devfs_destroy(dev_t dev)
devfs_create_t *devfs_create_hook = devfs_create;
devfs_destroy_t *devfs_destroy_hook = devfs_destroy;
int devfs_present = 1;
+#endif
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c
index 69ec9b2..6ab9cf1 100644
--- a/sys/fs/devfs/devfs_vfsops.c
+++ b/sys/fs/devfs/devfs_vfsops.c
@@ -35,6 +35,7 @@
*/
#include "opt_devfs.h"
+#ifndef NODEVFS
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,3 +208,4 @@ static struct vfsops devfs_vfsops = {
};
VFS_SET(devfs_vfsops, devfs, VFCF_SYNTHETIC);
+#endif
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
diff --git a/sys/i386/conf/GENERIC b/sys/i386/conf/GENERIC
index 2dada59..3421fdb 100644
--- a/sys/i386/conf/GENERIC
+++ b/sys/i386/conf/GENERIC
@@ -40,7 +40,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
diff --git a/sys/i386/conf/NEWCARD b/sys/i386/conf/NEWCARD
index a08d62b..b65a7ba 100644
--- a/sys/i386/conf/NEWCARD
+++ b/sys/i386/conf/NEWCARD
@@ -44,7 +44,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 810420a..14302b2 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -672,7 +672,7 @@ options PORTAL #Portal filesystem
options PROCFS #Process filesystem
options UMAPFS #UID map filesystem
options UNION #Union filesystem
-options DEVFS #devices filesystem
+# options NODEVFS #disable devices filesystem
# The xFS_ROOT options REQUIRE the associated ``options xFS''
options NFS_ROOT #NFS usable as root device
# This code enables IFS, an FFS which exports inodes as the namespace.
diff --git a/sys/ia64/conf/GENERIC b/sys/ia64/conf/GENERIC
index 9c6f5a0..258e6c4 100644
--- a/sys/ia64/conf/GENERIC
+++ b/sys/ia64/conf/GENERIC
@@ -36,7 +36,6 @@ options INET6 #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options MFS #Memory Filesystem
-#options DEVFS #Device Filesystem
options MD_ROOT #MD is a potential root device
options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device
diff --git a/sys/pc98/conf/GENERIC b/sys/pc98/conf/GENERIC
index 22e1a80..aa67567 100644
--- a/sys/pc98/conf/GENERIC
+++ b/sys/pc98/conf/GENERIC
@@ -42,7 +42,6 @@ options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
-#options DEVFS #Device Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
OpenPOWER on IntegriCloud