1993-05-20 07:30:41 +04:00
|
|
|
/*
|
1993-12-18 07:31:28 +03:00
|
|
|
* $Id: isofs_bmap.c,v 1.6 1993/12/18 04:31:28 mycroft Exp $
|
1993-05-20 07:30:41 +04:00
|
|
|
*/
|
|
|
|
|
1993-12-18 07:31:28 +03:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/namei.h>
|
|
|
|
#include <sys/buf.h>
|
|
|
|
#include <sys/file.h>
|
|
|
|
#include <sys/vnode.h>
|
|
|
|
#include <sys/mount.h>
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-12-18 07:31:28 +03:00
|
|
|
#include <isofs/iso.h>
|
|
|
|
#include <isofs/isofs_node.h>
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
iso_bmap(ip, lblkno, result)
|
|
|
|
struct iso_node *ip;
|
|
|
|
int lblkno;
|
1993-09-03 08:37:52 +04:00
|
|
|
daddr_t *result;
|
1993-03-21 12:45:37 +03:00
|
|
|
{
|
1993-10-28 20:38:42 +03:00
|
|
|
*result = (ip->iso_start + lblkno)
|
|
|
|
* (ip->i_mnt->logical_block_size / DEV_BSIZE);
|
|
|
|
return 0;
|
1993-03-21 12:45:37 +03:00
|
|
|
}
|