Hi,

I have an inode and I want to preallocate 100 data blocks for that
inode, through a kernel module.

Which function should I invoke inside the kernel to which i intend to
pass (inode no., no. of blocks ), so that it will fill up the inode
with the newly allocated blocks into the inode's block table (i_data
in incore ext2 inode or i_block in ext2 disk inode).

I have both the in-core and on-disk inode with me. So, I can use both.

Remember I wish to do this inside the kernel and not from user space.

Sometime back I read about fallocate, which also had similar
intentions. Any one having any idea ?

-- 
Regards,
Sandeep.





        
"To learn is to change. Education is a process that changes the learner."

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to