On Tue, 14 Jun 2005, Shrinand Javadekar wrote: > What if I want to extend an existing functionality? Most cliched > example : compression and decomperssion of file data. > > So hook the read and write syscalls and in the hooked methods write > the code for decompression and compression respectively.. Whats your > take on that gurus? Bad example ;) For one, it would totally screw up mmap, which needs the data to be in the pagecache in an uncompressed form. Secondly, Linux already has three filesystems with compression support: jffs2, cramfs and zisofs. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/