From 9cc99e368157eae7ac69b0c266f807cb27577643 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 30 Aug 1999 07:56:15 +0000 Subject: [PATCH] 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. --- sys/dev/vn/vn.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index f51efca8ed75..199c8046d460 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;