diff options
author | phk <phk@FreeBSD.org> | 1999-08-28 08:10:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-28 08:10:13 +0000 |
commit | c15e61ea99068f573e717c13abfaad318dbdb9c9 (patch) | |
tree | eebcd31029c24a1f845c1cd33cb05da614a0b4c9 | |
parent | 4551595b846af254999fab22023d265fa6b2aedc (diff) | |
download | FreeBSD-src-c15e61ea99068f573e717c13abfaad318dbdb9c9.zip FreeBSD-src-c15e61ea99068f573e717c13abfaad318dbdb9c9.tar.gz |
Initialize dev->si_bsize*, the floppy driver doesn't use dsopen().
-rw-r--r-- | sys/dev/fdc/fdc.c | 3 | ||||
-rw-r--r-- | sys/isa/fd.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index ce2ea33..7704cca 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 ce2ea33..7704cca 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); |