Honen, Oren wrote:
How would this "server" know which diff to apply?I'm thinking of writing an application that will create a dummy file. When this file is read the application will return a data based on the original file and a diff file. I thought of using /proc fs for that so when reading this file, a callback routine will be activated. As far as I looked this is possible but only with kmodule and/or device driver ( and using /dev ). The problem is that I need all of this in user space with NO root privilegese.
Other solution might be massing with i-node with some parts pointing to
the original file and other parts pointing at fixed lines files. I
believe this solution is worst as it involves to much hacking.
It sounds like a job for named pipes or UNIX-domain sockets. Maybe even a clever shell script would
be enough for the server. Getting this into the kernel is an overkill and non-elegant, IMHO (e.g. what if
you'd have to move to anotehr platform?).
And lastly - 1.5Gb of data shouldn't be a huge disk drain with the size of current-days disks,
especially compared to the overhead and possible fragileness of the "dynamic" solution (server being down,
client being picky about reading none-regular files, server bugs, client wants to mmap(2), lseek(2) or do
other fancy stuff with the file besides a plain read(2), etc...).
That is, unless I miss more constraints that you haven't told us about yet.
--Amos
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
