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.
This commit is contained in:
parent
1fb707135d
commit
6db574927e
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user