hi,<br><br>in kernel space ,if i get the i_ino(inode mumber ) of a file, and next
how could i get the block number of this file? in VFS layer the inode
struct haven't i_block[] array to point to the blocks. but in
ext3_inode struct, it has. what's the relationship between the VFS
inode and ext3_inode?<img src="http://www.linuxforums.org/forum/images/smilies/confused.gif" alt="" title="Confused" class="inlineimg" border="0"><br clear="all"><br><br>how do i get the block number of a file ?  <span style="font-size: 12pt; font-family: "Times New Roman"; letter-spacing: 0.5pt;" lang="EN-US">the path is as follow:<br>

<br>filp_open("/bin/ls",</span><span style="font-size: 12pt; font-family: "Times New Roman"; letter-spacing: 0.5pt;" lang="EN-US">O_RDONLY</span><span style="font-size: 12pt; font-family: "Times New Roman"; letter-spacing: 0.5pt;" lang="EN-US">,0)</span>----<div id=":e5" class="ii gt">

-->struct
file *------->struct dentry  *f_dentry----->struct inode
*d_inode-------->struct inode{}-------------><span style="background-color: rgb(255, 255, 51);">???-</span>----------->struct ext3_inode{}---------->__le32    i_block[EXT2_N_BLOCKS];</div><br>from VFS inode to ext3_inode , i don't know how to transfer?? Thanks!<br>

-- <br>Best regards,<br>张树坤<br>北京理工大学,计算机科学技术学院<br>Sucan<br>Computer Department,Beijing Institute of Technology,China<br>