Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/msdosfs/msdosfs_vfsops.c
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Lines | if (error != 0) { | ||||
VOP_UNLOCK(devvp); | VOP_UNLOCK(devvp); | ||||
return (error); | return (error); | ||||
} | } | ||||
dev_ref(dev); | dev_ref(dev); | ||||
bo = &devvp->v_bufobj; | bo = &devvp->v_bufobj; | ||||
VOP_UNLOCK(devvp); | VOP_UNLOCK(devvp); | ||||
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; | ||||
/* | /* | ||||
* Read the boot sector of the filesystem, and then check the | * Read the boot sector of the filesystem, and then check the | ||||
* boot signature. If not a dos boot sector then error out. | * boot signature. If not a dos boot sector then error out. | ||||
* | * | ||||
* NOTE: 8192 is a magic size that works for ffs. | * NOTE: 8192 is a magic size that works for ffs. | ||||
*/ | */ | ||||
error = bread(devvp, 0, 8192, NOCRED, &bp); | error = bread(devvp, 0, 8192, NOCRED, &bp); | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |