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.
This commit is contained in:
parent
698a4b1cdb
commit
9cc99e3681
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50622
@ -510,10 +510,7 @@ vniocattach_file(vn, vio, dev, flag, p)
|
|||||||
(void) vn_close(nd.ni_vp, flags, p->p_ucred, p);
|
(void) vn_close(nd.ni_vp, flags, p->p_ucred, p);
|
||||||
return(error);
|
return(error);
|
||||||
}
|
}
|
||||||
if (dev->si_bsize_phys < vn->sc_secsize)
|
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;
|
|
||||||
vn->sc_flags |= VNF_INITED;
|
vn->sc_flags |= VNF_INITED;
|
||||||
if (flags == FREAD)
|
if (flags == FREAD)
|
||||||
vn->sc_flags |= VNF_READONLY;
|
vn->sc_flags |= VNF_READONLY;
|
||||||
|
Loading…
Reference in New Issue
Block a user