summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-10-18 16:59:50 +0000
committerphk <phk@FreeBSD.org>1999-10-18 16:59:50 +0000
commited12aa381a79cce10e3e6a1b84711c24e06725a7 (patch)
tree3c23f8aea0053fd23ccb37872b9cddad8b47ffe0 /sys/fs
parentca90f5632f9d45cb6ae45c1d138e81711c0fff42 (diff)
downloadFreeBSD-src-ed12aa381a79cce10e3e6a1b84711c24e06725a7.zip
FreeBSD-src-ed12aa381a79cce10e3e6a1b84711c24e06725a7.tar.gz
Change the default for the vfs.bdev_buffered sysctl to zero.
This means that access to block devices nodes will act the same as char device nodes for disk-like devices. If you encounter problems after this, where programs accessing disks directly fail to operate, please use the following command to revert to previous behaviour: sysctl -w vfs.bdev_buffered=1 And verify that this was indeed the cause of your trouble. See the mail-archives of the arch@FreeBSD.org list for background.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/specfs/spec_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index 4c09d68..44cb42e 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -117,7 +117,7 @@ static struct vnodeopv_desc spec_vnodeop_opv_desc =
VNODEOP_SET(spec_vnodeop_opv_desc);
-static int bdev_buffered = 1;
+static int bdev_buffered = 0;
SYSCTL_INT(_vfs, OID_AUTO, bdev_buffered, CTLFLAG_RW, &bdev_buffered, 0, "");
static int enable_userblk_io = 1;
OpenPOWER on IntegriCloud