Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264023AbTKJR7R (ORCPT ); Mon, 10 Nov 2003 12:59:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264005AbTKJR7R (ORCPT ); Mon, 10 Nov 2003 12:59:17 -0500 Received: from terminus.zytor.com ([63.209.29.3]:59039 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S264023AbTKJR7N (ORCPT ); Mon, 10 Nov 2003 12:59:13 -0500 Message-ID: <3FAFD1E5.5070309@zytor.com> Date: Mon, 10 Nov 2003 09:59:01 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en, sv, es, fr MIME-Version: 1.0 To: Davide Libenzi CC: Andrea Arcangeli , Larry McVoy , Linux Kernel Mailing List Subject: Re: kernel.bkbits.net off the air References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 34 Davide Libenzi wrote: > On Mon, 10 Nov 2003, Andrea Arcangeli wrote: > > >>the updates shows up on kernel.org, rsync can't even hang on per-file >>locks, sure it can't be coherent as a whole. >> >>The best way to fix this isn't to add locking to rsync, but to add two >>files inside or outside the tree, each one is a sequence number, so you >>fetch file1 first, then you rsync and you fetch file2, then you compare >>them. If they're the same, your rsync copy is coherent. It's the same >>locking we introduced with vgettimeofday. >> >>Ideally rsync could learn to check the sequence numbers by itself but I >>don't mind a bit of scripting outside of rsync. > > Wouldn't a simpler "stop-rsync -> update-root -> start-rsync" work? If > you'll hit an update you will get a error from your local rsync, that will > let you know to retry the operation. > Part of the problem is that there are multiple steps in the rsync chain, some of which can't be stopped in this way. The sequence number idea looks sensible to me. Larry, would it be too much work to have the cvs repository generator generate these files? -hpa - 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/