aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-08-30 07:08:04 +0000
committerBruce Evans <bde@FreeBSD.org>1999-08-30 07:08:04 +0000
commit4047cd0bb2cf6f25d4bf141a834584cd485b536b (patch)
treee089cb74ad4bd3b064fe87f2b08fd127798f1b57
parent1ff1015930374c1f354416b58abe253c9953a6a4 (diff)
downloadsrc-4047cd0bb2cf6f25d4bf141a834584cd485b536b.tar.gz
src-4047cd0bb2cf6f25d4bf141a834584cd485b536b.zip
Converted the silly SAFTEY option into a new-style option by renaming it to
DIAGNOSTIC. Fixed an English style bug in the panic messages controlled by SAFETY.
Notes
Notes: svn path=/head/; revision=50616
-rw-r--r--sys/conf/NOTES6
-rw-r--r--sys/fs/nullfs/null_vnops.c5
-rw-r--r--sys/fs/umapfs/umap_vnops.c4
-rw-r--r--sys/i386/conf/LINT6
-rw-r--r--sys/i386/conf/NOTES6
-rw-r--r--sys/miscfs/nullfs/null_vnops.c5
-rw-r--r--sys/miscfs/umapfs/umap_vnops.c4
7 files changed, 8 insertions, 28 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 5f5eba98f872..544b2f402858 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -602,12 +602,6 @@ options CD9660_ROOTDELAY=20
#
options SUIDDIR
-
-# Add some error checking code to the null_bypass routine
-# in the NULL filesystem
-#options SAFETY
-
-
# NFS options:
options NFS_MINATTRTIMO=3 # VREG attrib cache timeout in sec
options NFS_MAXATTRTIMO=60
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index c9019210da55..6156d0f3c734 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -206,7 +206,6 @@ static int null_unlock __P((struct vop_unlock_args *ap));
* This version has been optimized for speed, throwing away some
* safety checks. It should still always work, but it's not as
* robust to programmer errors.
- * Define SAFETY to include some error checking code.
*
* In general, we map all vnodes going down and unmap them on the way back.
* As an exception to this, vnodes can be marked "unmapped" by setting
@@ -244,13 +243,13 @@ null_bypass(ap)
if (null_bug_bypass)
printf ("null_bypass: %s\n", descp->vdesc_name);
-#ifdef SAFETY
+#ifdef DIAGNOSTIC
/*
* We require at least one vp.
*/
if (descp->vdesc_vp_offsets == NULL ||
descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET)
- panic ("null_bypass: no vp's in map.");
+ panic ("null_bypass: no vp's in map");
#endif
/*
diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c
index 0b73ccbb39dc..02135b2409f1 100644
--- a/sys/fs/umapfs/umap_vnops.c
+++ b/sys/fs/umapfs/umap_vnops.c
@@ -93,13 +93,13 @@ umap_bypass(ap)
if (umap_bug_bypass)
printf ("umap_bypass: %s\n", descp->vdesc_name);
-#ifdef SAFETY
+#ifdef DIAGNOSTIC
/*
* We require at least one vp.
*/
if (descp->vdesc_vp_offsets == NULL ||
descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET)
- panic ("umap_bypass: no vp's in map.");
+ panic ("umap_bypass: no vp's in map");
#endif
/*
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index 5f5eba98f872..544b2f402858 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -602,12 +602,6 @@ options CD9660_ROOTDELAY=20
#
options SUIDDIR
-
-# Add some error checking code to the null_bypass routine
-# in the NULL filesystem
-#options SAFETY
-
-
# NFS options:
options NFS_MINATTRTIMO=3 # VREG attrib cache timeout in sec
options NFS_MAXATTRTIMO=60
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 5f5eba98f872..544b2f402858 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -602,12 +602,6 @@ options CD9660_ROOTDELAY=20
#
options SUIDDIR
-
-# Add some error checking code to the null_bypass routine
-# in the NULL filesystem
-#options SAFETY
-
-
# NFS options:
options NFS_MINATTRTIMO=3 # VREG attrib cache timeout in sec
options NFS_MAXATTRTIMO=60
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c
index c9019210da55..6156d0f3c734 100644
--- a/sys/miscfs/nullfs/null_vnops.c
+++ b/sys/miscfs/nullfs/null_vnops.c
@@ -206,7 +206,6 @@ static int null_unlock __P((struct vop_unlock_args *ap));
* This version has been optimized for speed, throwing away some
* safety checks. It should still always work, but it's not as
* robust to programmer errors.
- * Define SAFETY to include some error checking code.
*
* In general, we map all vnodes going down and unmap them on the way back.
* As an exception to this, vnodes can be marked "unmapped" by setting
@@ -244,13 +243,13 @@ null_bypass(ap)
if (null_bug_bypass)
printf ("null_bypass: %s\n", descp->vdesc_name);
-#ifdef SAFETY
+#ifdef DIAGNOSTIC
/*
* We require at least one vp.
*/
if (descp->vdesc_vp_offsets == NULL ||
descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET)
- panic ("null_bypass: no vp's in map.");
+ panic ("null_bypass: no vp's in map");
#endif
/*
diff --git a/sys/miscfs/umapfs/umap_vnops.c b/sys/miscfs/umapfs/umap_vnops.c
index 0b73ccbb39dc..02135b2409f1 100644
--- a/sys/miscfs/umapfs/umap_vnops.c
+++ b/sys/miscfs/umapfs/umap_vnops.c
@@ -93,13 +93,13 @@ umap_bypass(ap)
if (umap_bug_bypass)
printf ("umap_bypass: %s\n", descp->vdesc_name);
-#ifdef SAFETY
+#ifdef DIAGNOSTIC
/*
* We require at least one vp.
*/
if (descp->vdesc_vp_offsets == NULL ||
descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET)
- panic ("umap_bypass: no vp's in map.");
+ panic ("umap_bypass: no vp's in map");
#endif
/*