Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_vfsops.c
Show First 20 Lines • Show All 1,049 Lines • ▼ Show 20 Lines | ffs_mountfs(odevvp, mp, td) | ||||
} | } | ||||
dev_ref(dev); | dev_ref(dev); | ||||
devvp->v_bufobj.bo_ops = &ffs_ops; | devvp->v_bufobj.bo_ops = &ffs_ops; | ||||
BO_LOCK(&odevvp->v_bufobj); | BO_LOCK(&odevvp->v_bufobj); | ||||
odevvp->v_bufobj.bo_flag |= BO_NOBUFS; | odevvp->v_bufobj.bo_flag |= BO_NOBUFS; | ||||
BO_UNLOCK(&odevvp->v_bufobj); | BO_UNLOCK(&odevvp->v_bufobj); | ||||
if (dev->si_iosize_max != 0) | if (dev->si_iosize_max != 0) | ||||
mp->mnt_iosize_max = dev->si_iosize_max; | mp->mnt_iosize_max = dev->si_iosize_max; | ||||
if (mp->mnt_iosize_max > MAXPHYS) | if (mp->mnt_iosize_max > maxphys) | ||||
mp->mnt_iosize_max = MAXPHYS; | mp->mnt_iosize_max = maxphys; | ||||
if ((SBLOCKSIZE % cp->provider->sectorsize) != 0) { | if ((SBLOCKSIZE % cp->provider->sectorsize) != 0) { | ||||
error = EINVAL; | error = EINVAL; | ||||
vfs_mount_error(mp, | vfs_mount_error(mp, | ||||
"Invalid sectorsize %d for superblock size %d", | "Invalid sectorsize %d for superblock size %d", | ||||
cp->provider->sectorsize, SBLOCKSIZE); | cp->provider->sectorsize, SBLOCKSIZE); | ||||
goto out; | goto out; | ||||
} | } | ||||
/* fetch the superblock and summary information */ | /* fetch the superblock and summary information */ | ||||
▲ Show 20 Lines • Show All 1,620 Lines • Show Last 20 Lines |