1) Given a virtual inode, how do I get the block list associated to it?
I tried to convert the inode to an ext3_inode_info using EXT3_I(), but I
can't find the block list there.
block list is in the ext3_inode_info struct:
struct ext3_inode_info {
__le32 i_data[15]; /* this is block list */
__u32 i_flags;
.......
};
and i do'nt know the second question.
2009/6/6 Donato Capitella <d.capitella at tin.it>
> Hi there,
> I just started hacking the linux kernel. I need to know how to do 2
> things:
>
> 2) Given a block number, how do I write data to that block? Is there any
> function like write_to_block(int block_n, char *buf, int bytes) or
> something?
>
> Thank you in advance, I'm young and this is my first approach to kernel
> programming and don't know where to find documentation.
>
> Donato Capitella
>
> _______________________________________________
> Ext3-users mailing list
> Ext3-users at redhat.com
> https://www.redhat.com/mailman/listinfo/ext3-users
>
--
Regards,
Sucan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://listman.redhat.com/archives/ext3-users/attachments/20090607/52fdfd63/attachment.htm>