From 9465bf44956bbdaba09fa02aa84c2e58dbf993d2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 28 Aug 1999 08:10:13 +0000 Subject: [PATCH] Initialize dev->si_bsize*, the floppy driver doesn't use dsopen(). --- sys/dev/fdc/fdc.c | 3 +++ sys/isa/fd.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index ce2ea33bc405..7704cca01998 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -1226,6 +1226,9 @@ Fdopen(dev_t dev, int flags, int mode, struct proc *p) fd_p fd; fdc_p fdc; + dev->si_bsize_phys = DEV_BSIZE; + dev->si_bsize_best = BLKDEV_IOSIZE; + dev->si_bsize_max = MAXBSIZE; /* check bounds */ if ((fd = devclass_get_softc(fd_devclass, fdu)) == 0) return (ENXIO); diff --git a/sys/isa/fd.c b/sys/isa/fd.c index ce2ea33bc405..7704cca01998 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -1226,6 +1226,9 @@ Fdopen(dev_t dev, int flags, int mode, struct proc *p) fd_p fd; fdc_p fdc; + dev->si_bsize_phys = DEV_BSIZE; + dev->si_bsize_best = BLKDEV_IOSIZE; + dev->si_bsize_max = MAXBSIZE; /* check bounds */ if ((fd = devclass_get_softc(fd_devclass, fdu)) == 0) return (ENXIO);