Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755704AbZC3RoR (ORCPT ); Mon, 30 Mar 2009 13:44:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753265AbZC3RoF (ORCPT ); Mon, 30 Mar 2009 13:44:05 -0400 Received: from THUNK.ORG ([69.25.196.29]:49926 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbZC3RoE (ORCPT ); Mon, 30 Mar 2009 13:44:04 -0400 Date: Mon, 30 Mar 2009 13:42:07 -0400 From: Theodore Tso To: Chris Mason Cc: Dave Chinner , Mark Lord , Stefan Richter , Jeff Garzik , Linus Torvalds , Matthew Garrett , Alan Cox , Andrew Morton , David Rees , Jesper Krogh , Linux Kernel Mailing List Subject: Re: Linux 2.6.29 Message-ID: <20090330174207.GQ13356@mit.edu> Mail-Followup-To: Theodore Tso , Chris Mason , Dave Chinner , Mark Lord , Stefan Richter , Jeff Garzik , Linus Torvalds , Matthew Garrett , Alan Cox , Andrew Morton , David Rees , Jesper Krogh , Linux Kernel Mailing List References: <49CD7B10.7010601@garzik.org> <49CD891A.7030103@rtr.ca> <49CD9047.4060500@garzik.org> <49CE2633.2000903@s5r6.in-berlin.de> <49CE3186.8090903@garzik.org> <49CE35AE.1080702@s5r6.in-berlin.de> <49CE3F74.6090103@rtr.ca> <20090329231451.GR26138@disturbed> <1238417751.30488.12.camel@think.oraclecorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1238417751.30488.12.camel@think.oraclecorp.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1229 Lines: 26 On Mon, Mar 30, 2009 at 08:55:51AM -0400, Chris Mason wrote: > Sorry, I'm afraid that rsync falls into the same category as the > kde/gnome apps here. > > There are a lot of backup programs built around rsync, and every one of > them risks losing the old copy of the file by renaming an unflushed new > copy over it. > > rsync needs the flushing about a million times more than gnome and kde, > and it doesn't have any option to do it automatically. It does have the > option to create backups, which is how a percentage of people are using > it, but I wouldn't call its current setup safe outside of ext3. I wouldn't make it to be the default, but as an option, if the backup script would take responsibility for restarting rsync if the server crashes, and if the rsync process executes a global sync(2) call when it is complete, an option to make rsync delete the target file before doing the rename to defeat the replace-via-rename hueristic could be justifiable. - Ted -- 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/