summaryrefslogtreecommitdiffstats
path: root/sys/ufs/mfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-20 19:57:28 +0000
committerphk <phk@FreeBSD.org>1999-09-20 19:57:28 +0000
commit3ea30afc2df519befce9b302ed4959d17a6392e6 (patch)
treef5b84884151162e62383cc75887209758a02a78c /sys/ufs/mfs
parentc0818069f7d5c0aa756e24c5d4605e5c1da60edc (diff)
downloadFreeBSD-src-3ea30afc2df519befce9b302ed4959d17a6392e6.zip
FreeBSD-src-3ea30afc2df519befce9b302ed4959d17a6392e6.tar.gz
Step one of replacing devsw->d_maxio with si_bsize_max.
Rename dev->si_bsize_max to si_iosize_max and set it in spec_open if the device didn't. Set vp->v_maxio from dev->si_bsize_max in spec_open rather than in ufs_bmap.c
Diffstat (limited to 'sys/ufs/mfs')
-rw-r--r--sys/ufs/mfs/mfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c
index 22ca0b6..c17fbd4 100644
--- a/sys/ufs/mfs/mfs_vfsops.c
+++ b/sys/ufs/mfs/mfs_vfsops.c
@@ -335,7 +335,7 @@ mfs_mount(mp, path, data, ndp, p)
dev = make_dev(&mfs_cdevsw, mfs_minor, 0, 0, 0, "MFS%d", mfs_minor);
/* It is not clear that these will get initialized otherwise */
dev->si_bsize_phys = DEV_BSIZE;
- dev->si_bsize_max = MAXBSIZE;
+ dev->si_iosize_max = DFLTPHYS;
addaliasu(devvp, makeudev(253, mfs_minor++));
devvp->v_data = mfsp;
mfsp->mfs_baseoff = args.base;
@@ -497,7 +497,7 @@ mfs_init(vfsp)
0, 0, 0, "MFS%d", mfs_minor);
/* It is not clear that these will get initialized otherwise */
rootdev->si_bsize_phys = DEV_BSIZE;
- rootdev->si_bsize_max = MAXBSIZE;
+ rootdev->si_iosize_max = DFLTPHYS;
mfs_minor++;
} else if (bootverbose)
printf("No MFS image available as root f/s.\n");
OpenPOWER on IntegriCloud