Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/cd9660/cd9660_vfsops.c
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | iso_mountfs(devvp, mp) | ||||
if (error == 0) | if (error == 0) | ||||
g_getattr("MNT::verified", cp, &isverified); | g_getattr("MNT::verified", cp, &isverified); | ||||
g_topology_unlock(); | g_topology_unlock(); | ||||
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 = &devvp->v_bufobj; | ||||
/* 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) { | ||||
▲ Show 20 Lines • Show All 602 Lines • Show Last 20 Lines |