[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
what's relationship between VFS inode and ext3_inode?
- From: Zhang Shukun <bitzsk gmail com>
- To: ext3-users redhat com
- Subject: what's relationship between VFS inode and ext3_inode?
- Date: Tue, 2 Jun 2009 16:56:33 +0800
hi,
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?![Confused]()
how do i get the block number of a file ? the path is as follow:
filp_open("/bin/ls",O_RDONLY,0)----
-->struct
file *------->struct dentry *f_dentry----->struct inode
*d_inode-------->struct inode{}------------->???------------>struct ext3_inode{}---------->__le32 i_block[EXT2_N_BLOCKS];
from VFS inode to ext3_inode , i don't know how to transfer?? Thanks!
--
Best regards,
张树坤
北京理工大学,计算机科学技术学院
Sucan
Computer Department,Beijing Institute of Technology,China
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]