Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/cd9660/cd9660_vfsops.c
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | iso_mountfs(devvp, mp) | ||||
VOP_UNLOCK(devvp); | VOP_UNLOCK(devvp); | ||||
if (error) | if (error) | ||||
goto out; | goto out; | ||||
if (devvp->v_rdev->si_iosize_max != 0) | if (devvp->v_rdev->si_iosize_max != 0) | ||||
mp->mnt_iosize_max = devvp->v_rdev->si_iosize_max; | mp->mnt_iosize_max = devvp->v_rdev->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; | ||||
bo = &devvp->v_bufobj; | bo = vp2bo(devvp); | ||||
/* This is the "logical sector size". The standard says this | /* This is the "logical sector size". The standard says this | ||||
* should be 2048 or the physical sector size on the device, | * should be 2048 or the physical sector size on the device, | ||||
* whichever is greater. | * whichever is greater. | ||||
*/ | */ | ||||
if ((ISO_DEFAULT_BLOCK_SIZE % cp->provider->sectorsize) != 0) { | if ((ISO_DEFAULT_BLOCK_SIZE % cp->provider->sectorsize) != 0) { | ||||
error = EINVAL; | error = EINVAL; | ||||
goto out; | goto out; | ||||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | vd_end: | ||||
mp->mnt_data = isomp; | mp->mnt_data = isomp; | ||||
mp->mnt_stat.f_fsid.val[0] = dev2udev(dev); | mp->mnt_stat.f_fsid.val[0] = dev2udev(dev); | ||||
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; | mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; | ||||
mp->mnt_maxsymlinklen = 0; | mp->mnt_maxsymlinklen = 0; | ||||
MNT_ILOCK(mp); | MNT_ILOCK(mp); | ||||
if (isverified) | if (isverified) | ||||
mp->mnt_flag |= MNT_VERIFIED; | mp->mnt_flag |= MNT_VERIFIED; | ||||
mp->mnt_flag |= MNT_LOCAL; | mp->mnt_flag |= MNT_LOCAL; | ||||
mp->mnt_kern_flag |= MNTK_LOOKUP_SHARED | MNTK_EXTENDED_SHARED; | mp->mnt_kern_flag |= MNTK_LOOKUP_SHARED | MNTK_EXTENDED_SHARED | | ||||
MNTK_USES_BCACHE; | |||||
MNT_IUNLOCK(mp); | MNT_IUNLOCK(mp); | ||||
isomp->im_mountp = mp; | isomp->im_mountp = mp; | ||||
isomp->im_dev = dev; | isomp->im_dev = dev; | ||||
isomp->im_devvp = devvp; | isomp->im_devvp = devvp; | ||||
vfs_flagopt(mp->mnt_optnew, "norrip", &isomp->im_flags, ISOFSMNT_NORRIP); | vfs_flagopt(mp->mnt_optnew, "norrip", &isomp->im_flags, ISOFSMNT_NORRIP); | ||||
vfs_flagopt(mp->mnt_optnew, "gens", &isomp->im_flags, ISOFSMNT_GENS); | vfs_flagopt(mp->mnt_optnew, "gens", &isomp->im_flags, ISOFSMNT_GENS); | ||||
vfs_flagopt(mp->mnt_optnew, "extatt", &isomp->im_flags, ISOFSMNT_EXTATT); | vfs_flagopt(mp->mnt_optnew, "extatt", &isomp->im_flags, ISOFSMNT_EXTATT); | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |