Re: question about create function of inode_operations

2008-01-14 Thread Octavian Purdila
On Sunday 13 January 2008, Manish Katiyar wrote: Hi friends, Hi Manish, 1) When is d_instantiate needed. Is it required always ?? . As far as i understand it attaches the inode to the dentry object and may not be needed always. AFAIK you need to call insert_inode_hash for every inode you

question about create function of inode_operations

2008-01-13 Thread Manish Katiyar
Hi friends, I am trying to learn filesystems and writing a small module. Till now I am able to do simple mount,cd commands. However in order to support creating new files, I have implemented the below function. However I am stuck at few points. It would be of great help if someone can clarify.