lkml.org 
[lkml]   [2003]   [Nov]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 14 Nov 2003 00:13:00 -0500
SubjectRe: kernel.bkbits.net off the air
FromAndrew Pimlott <>
On Mon, Nov 10, 2003 at 08:31:01PM +0100, Andrea Arcangeli wrote:
> It maybe also cleaner to use a slightly more complicated but more
> compact algorithm, this would make a potential new rsync command line
> option cleaner since only 1 sequence file would need to be specified:
> 
> 	do {
> 		seq = fetch(sequence-file);
> 		if (seq & 1)
> 			break;
> 		rsync
> 		if (seq != fetch(sequence-file))
> 			seq = 1;
> 	} while (seq & 1 && sleep 10 /* ideally exponential backoff */)
> 
> this way only 1 sequence-file is needed for each repository that we want
> to checkout. the server side only has to increase twice the same file
> before and after each update of the repository, so the server side is
> even simpler (with the only additional requirement that the sequence
> number has to start "even"), only the client side is a bit more complicated.

For transparency, I would change the file contents to "updating"
during an update, instead of the even-odd thing.  I think this will
make it more obvious to people how to use it properly.

Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:58    [from the cache]
©2003-2008