summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-30 07:56:15 +0000
committerphk <phk@FreeBSD.org>1999-08-30 07:56:15 +0000
commitdac43b022432b627a46c3aa4772dd215541b193b (patch)
tree0c0ebdd71736030fe32ced00be4af2287223a9af /sys/dev/vn
parent0191a04a930d5b53181e64bcc98fc1ef426b2c14 (diff)
downloadFreeBSD-src-dac43b022432b627a46c3aa4772dd215541b193b.zip
FreeBSD-src-dac43b022432b627a46c3aa4772dd215541b193b.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. Use the specfs routines rather having cloned copies in devfs.
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index f51efca..199c804 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -510,10 +510,7 @@ vniocattach_file(vn, vio, dev, flag, p)
(void) vn_close(nd.ni_vp, flags, p->p_ucred, p);
return(error);
}
- if (dev->si_bsize_phys < vn->sc_secsize)
- dev->si_bsize_phys = vn->sc_secsize;
- if (dev->si_bsize_best < vn->sc_secsize)
- dev->si_bsize_best = vn->sc_secsize;
+ dev->si_bsize_phys = vn->sc_secsize;
vn->sc_flags |= VNF_INITED;
if (flags == FREAD)
vn->sc_flags |= VNF_READONLY;
OpenPOWER on IntegriCloud