NetBSD/sys/isofs/isofs_bmap.c

24 lines
441 B
C
Raw Normal View History

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;
daddr_t *result;
1993-03-21 12:45:37 +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
}