Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/cd9660/cd9660_bmap.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | cd9660_bmap(ap) | ||||
daddr_t lblkno = ap->a_bn; | daddr_t lblkno = ap->a_bn; | ||||
int bshift; | int bshift; | ||||
/* | /* | ||||
* Check for underlying vnode requests and ensure that logical | * Check for underlying vnode requests and ensure that logical | ||||
* to physical mapping is requested. | * to physical mapping is requested. | ||||
*/ | */ | ||||
if (ap->a_bop != NULL) | if (ap->a_bop != NULL) | ||||
*ap->a_bop = &ip->i_mnt->im_devvp->v_bufobj; | *ap->a_bop = vp2bo(ip->i_mnt->im_devvp); | ||||
if (ap->a_bnp == NULL) | if (ap->a_bnp == NULL) | ||||
return (0); | return (0); | ||||
/* | /* | ||||
* Compute the requested block number | * Compute the requested block number | ||||
*/ | */ | ||||
bshift = ip->i_mnt->im_bshift; | bshift = ip->i_mnt->im_bshift; | ||||
*ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT); | *ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT); | ||||
Show All 23 Lines |