1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Only assign to si_bsize_phys if we have an intelligent value for it.

Otherwise leave at zero and let the generic code decide.
This commit is contained in:
Poul-Henning Kamp 1999-09-18 21:48:39 +00:00
parent bd9e52dcc4
commit 712f8471fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51378

View File

@ -224,7 +224,6 @@ vnopen(dev_t dev, int flags, int mode, struct proc *p)
* used directly if you open the 'whole disk' device.
*/
dev->si_bsize_phys = vn->sc_secsize;
dev->si_bsize_best = vn->sc_secsize;
if (flags & FWRITE && vn->sc_flags & VNF_READONLY)
return (EACCES);