summaryrefslogtreecommitdiffstats
path: root/sys/dev/mcd
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/dev/mcd
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/dev/mcd')
-rw-r--r--sys/dev/mcd/mcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index 37bd508..19f35e6 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -296,8 +296,6 @@ int mcdopen(dev_t dev, int flags, int fmt, struct proc *p)
if (!(cd->flags & MCDVALID) && cd->openflags)
return ENXIO;
- dev->si_bsize_phys = 2048;
- dev->si_bsize_max = MAXBSIZE;
if (mcd_getstat(unit,1) == -1)
return EIO;
@@ -352,6 +350,8 @@ int mcdopen(dev_t dev, int flags, int fmt, struct proc *p)
MCD_TRACE("open: partition=%d, disksize = %ld, blksize=%d\n",
part, cd->disksize, cd->blksize);
+ dev->si_bsize_phys = cd->blksize;
+
if (part == RAW_PART ||
(part < cd->dlabel.d_npartitions &&
cd->dlabel.d_partitions[part].p_fstype != FS_UNUSED)) {
OpenPOWER on IntegriCloud