summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-30 07:56:23 +0000
committerphk <phk@FreeBSD.org>1999-08-30 07:56:23 +0000
commit216936ca6d54e77a70cdfe5305d1ba3ac2412fad (patch)
tree08111cbf8cb75c2fe1dbf514a18ed740cd870dce /sys/kern/subr_diskslice.c
parentdac43b022432b627a46c3aa4772dd215541b193b (diff)
downloadFreeBSD-src-216936ca6d54e77a70cdfe5305d1ba3ac2412fad.zip
FreeBSD-src-216936ca6d54e77a70cdfe5305d1ba3ac2412fad.tar.gz
Make bdev userland access work like cdev userland access unless
the highly non-recommended option ALLOW_BDEV_ACCESS is used. (bdev access is evil because you don't get write errors reported.) Kill si_bsize_best before it kills Matt :-) Use the specfs routines rather having cloned copies in devfs.
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index ae676e3..e2b35ef 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -710,7 +710,6 @@ dsopen(dev, mode, flags, sspp, lp)
int unit;
dev->si_bsize_phys = lp->d_secsize;
- dev->si_bsize_best = BLKDEV_IOSIZE;
dev->si_bsize_max = MAXBSIZE;
unit = dkunit(dev);
OpenPOWER on IntegriCloud