summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/matcd/matcd.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-09-09 19:08:44 +0000
committerjulian <julian@FreeBSD.org>1999-09-09 19:08:44 +0000
commit5c78e7345a2fd91174249db5a41aec14e57f1fb3 (patch)
treee7d99a6be8ccf0086169fae4fdd8377ccf9252be /sys/i386/isa/matcd/matcd.c
parentd475da44561ed80c7ceb7e75432d70a726c7e751 (diff)
downloadFreeBSD-src-5c78e7345a2fd91174249db5a41aec14e57f1fb3.zip
FreeBSD-src-5c78e7345a2fd91174249db5a41aec14e57f1fb3.tar.gz
Changes to centralise the default blocksize behaviour.
More likely to follow. Submitted by: phk@freebsd.org
Diffstat (limited to 'sys/i386/isa/matcd/matcd.c')
-rw-r--r--sys/i386/isa/matcd/matcd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c
index 78e7ce0..bef362d 100644
--- a/sys/i386/isa/matcd/matcd.c
+++ b/sys/i386/isa/matcd/matcd.c
@@ -623,9 +623,6 @@ int matcdopen(dev_t dev, int flags, int fmt,
if (ldrive >= TOTALDRIVES) return(ENXIO);
- dev->si_bsize_phys = 2048;
- dev->si_bsize_max = MAXBSIZE;
-
#ifdef DEBUGOPEN
printf("matcd%d: Open: dev %x partition %x controller %x flags %x cdrive %x\n",
ldrive,(int)dev,partition,controller,cd->flags,
@@ -696,7 +693,6 @@ int matcdopen(dev_t dev, int flags, int fmt,
if ((cd->flags & MATCDLABEL)==0) {
bzero(&cd->dlabel,sizeof(struct disklabel));
-
/* Now we query the drive for the actual size of the media.
This is where we find out of there is any media or if the
media isn't a Mode 1 or Mode 2/XA disc.
@@ -749,6 +745,8 @@ int matcdopen(dev_t dev, int flags, int fmt,
cd->flags |= MATCDLABEL; /*Mark drive as having TOC*/
}
+ dev->si_bsize_phys = cd->blksize;
+
#ifdef DEBUGOPEN
printf("matcd%d open2: partition=%d disksize=%d blksize=%x flags=%x\n",
ldrive,partition,(int)cd->disksize,cd->blksize,cd->flags);
OpenPOWER on IntegriCloud