Date: Mon, 6 Mar 2000 09:55:22 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Alain Magloire cc: Nate Eldredge , djgpp-workers AT delorie DOT com Subject: Re: DJGPP innovations ????? In-Reply-To: <200003052145.QAA16031@qnx.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 5 Mar 2000, Alain Magloire wrote: > The Daemon thing is another step nothing special about it, you start a cron > job or any shell scripts. Running a program in background is easy, but finding files that are identical (efficiently) is not. > > But you'd also need something like copy-on-write to deal with one of the > > files being modified, if you wanted it to be transparent. > > Why do you want COW (Copy On Write)? I would expect any modifications > to be reflected on all the files. I think you forget that the links were not created by the user, they were created by a program which didn't have any clue whether the user did or didn't want these files to be linked. Since the user didn't link the files, she might be mightily surprised when changing one of them changes the other(s) as well. For example, imagine that you have 5 different versions of the Grep distribution on your disk ;-). Suppose that the ``link daemon'' finds out that all 5 versions have the same dfa.c in them, and decides to link them together. Then you modify dfa.c in one of the directories. Then you want to diff it against the old version, to send diffs to your pretesters. Imagine your surprise when Diff reports identical files...