file offset - inode block number

Deepak Manohar <[email protected]> Mon, 21 Feb 2005 09:55:05 -0500
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
Hi,

 I was wondering if there some way to translate a file offset in bytes
to a corresponding logical block number (b_blocknr)  in the inode.  I
realise that these logical block numbers do not have to be sequential
but am still wondering if there is some macro/function that can do
this.

 thanks.

Deepak Manohar