prasad Musale wrote: > Friends, > I am doing my final year project on filesystem RAIF(Redundant array of > independent file systems). I want to study the basic design of file > system using ramfs. I am inserting functions step by step & also > inserting printk , so that i can find the flow of particular commands > like mkdir or functions like open,read etc. Even though i can use these > functions from fs/inode.c i don't want to disturb kernel code every > time, which will require to compile kernel every time. By using only > specific code in my file i can precisely understand the working. But now > i am stuck at this point. Do u know any better solution? Plz convey me. > > > > On 12/23/05, *Parag N(पराग़)* <panemade@xxxxxxxxx > <mailto:panemade@xxxxxxxxx>> wrote: > > Hi, > You added 2 functions alloc_inode and new_inode from > /usr/src/linux/fs/inode.c to /usr/src/linux/fs/ramfs . You add > alloc_inode because new_inode requires it ok. > but why you want to do that as i think already new_inode in > /usr/src/linux/fs/ramfs/inode.c calling its function definition from > /usr/src/linux/fs/inode.c > so you can directly recompile kernel with ramfs support(which is > default in 2.6.14.3 <http://2.6.14.3>) and insert module. > regards, > Parag. > > On 12/22/05, prasad Musale <prasad.musale@xxxxxxxxx > <mailto:prasad.musale@xxxxxxxxx>> wrote: > > Hello friends, > > I have problem with inserting a ramfs module. I > > have changed the inode.c file in /usr/src/linux/fs/ramfs. I am > > inserting the alloc_inode & new_inode function from the > > /usr/src/linux/fs/inode.c file. I am just checking how ramfs work. > > Though compilation works, insertion of modul gives error: > > Error inserting module: -1 unknown variable. > > I have run ramfs code without those 2 functions. But now it's giving > > problem.It shows no error at compilation. I have even tried to > > recompile kernel, but no use. Will u plz help me as early as possible. > > > > Thanks. > > > > -- > > Kernelnewbies: Help each other learn about the Linux kernel. > > Archive: http://mail.nl.linux.org/kernelnewbies/ > > FAQ: http://kernelnewbies.org/faq/ > > > > > > Hi, 1) Please don't top post. It makes it hard to follow the conversation. :) 2) In your first post above you ask for help "as early as possible". That's a no no also. :) 3) And finally if you really want help try posting the output you are seeing when you try loading the module. The more information you provide the better the chance someone will be able/willing to help you. :) -- kr -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/