On Tue, Jun 29, 2004 at 09:31:18PM +0530, Siddhartha Jain wrote: > >You should cat /etc/foo >/proc/foo > > > >And then on the kernel side, you need the "write" method of the > >/proc/foo take the lines and convert them to whatever internal > >structures you need. > > > >The thing about proc file is to avoid reading files from kernel. > > I guess at this point I should discuss what I intend to do and try to weed > out any design flaws. > > Basically, I intend to create a module that, when loaded, allows for > file/directory replication. So if /home is meant to be replicated to /opt > then /etc can contain a config file that has a line like: > /home /opt Why do you want such a module? Oh, and how are you going to handle mmap? thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/