NetBSD/sys/isofs/isofs_bmap.c

24 lines
441 B
C
Raw Normal View History

1993-05-20 03:30:41 +00:00
/*
1993-12-18 04:31:28 +00:00
* $Id: isofs_bmap.c,v 1.6 1993/12/18 04:31:28 mycroft Exp $
1993-05-20 03:30:41 +00:00
*/
1993-12-18 04:31:28 +00: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 09:45:37 +00:00
1993-12-18 04:31:28 +00:00
#include <isofs/iso.h>
#include <isofs/isofs_node.h>
1993-03-21 09:45:37 +00:00
iso_bmap(ip, lblkno, result)
struct iso_node *ip;
int lblkno;
daddr_t *result;
1993-03-21 09:45:37 +00:00
{
*result = (ip->iso_start + lblkno)
* (ip->i_mnt->logical_block_size / DEV_BSIZE);
return 0;
1993-03-21 09:45:37 +00:00
}