rishi agrawal escreveu: You can pick the whole dir of ext2, rename it to another name foo. Then change all occurences of ext2 to foo, EXT2 to FOO, Ext2 to Foo (this one not sure if it exists) and you have a new filesystem foo. You may need to change back some FOO or foo to EXT2 or ext2 because they are not in the ext2 dir. These are general stuff, like bit operations that you may not want to change at all. Other small changes that may occur are also trivial. I dit that changing ext2 to extp. You may have to change this depending on the version of the kernel. for f in $(ls *.c *.h Makefile); do echo $f sed -i \ -e s/ext2/extp/g \ -e s/EXT2/EXTP/g \ -e s/extp_find_next_zero_bit/ext2_find_next_zero_bit/g \ -e s/extp_set_bit_atomic/ext2_set_bit_atomic/g \ -e s/extp_clear_bit_atomic/ext2_clear_bit_atomic/g \ -e s/extp_test_bit/ext2_test_bit/g \ -e s/extp_fsblk_t/ext2_fsblk_t/g \ -e s/EXTP_SUPER_MAGIC/EXT2_SUPER_MAGIC/g \ $f done HTH Paulo
Hello everybody, I want to add some piece of code in the ext2 file system's code and see the results(just want to add some printk's) My system is using ext3 file system. One method of doing it is by extracting the source code and then adding whatever code I want to add and then compile kernel the kernel again. Another method ( I am not sure): I compile the kernel and compile the ext2 file system support as a module. So whenever I will mount any ext2 file system the ext2 module will be loaded and I will be able to use the ext2 file system. My question is : now when I want to add some more piece of code can I compile only the ext2 part and unload the old module and load the new compiled module of ext2 ? will it work ?? That will save me from compiling the whole kernel . Is it possible ?? If yes kindly tell me how do I compile the ext2 code as a module next time without compiling the whole kernel.
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ