From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32894 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: "Fixing up" gnus - (how hard is this?). (was Re: (provide 'nnmaildir)) Date: 18 Oct 2000 16:29:56 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87aec3o3u6.fsf_-_@raven.localnet> <871yxfnlnz.fsf@raven.localnet> <87g0lt9amk.fsf@raven.localnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169100 22337 80.91.224.250 (21 Oct 2002 02:58:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:58:20 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id E5C02D051E for ; Wed, 18 Oct 2000 16:31:04 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB18223; Wed, 18 Oct 2000 15:30:47 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 18 Oct 2000 15:30:10 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA06415 for ; Wed, 18 Oct 2000 15:30:01 -0500 (CDT) Original-Received: from multivac.student.cwru.edu (multivac.STUDENT.CWRU.Edu [129.22.239.69]) by mailhost.sclp.com (Postfix) with SMTP id 212CDD051E for ; Wed, 18 Oct 2000 16:30:22 -0400 (EDT) Original-Received: (qmail 27895 invoked by uid 500); 18 Oct 2000 20:30:18 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org In-Reply-To: Rob Browning's message of "18 Oct 2000 15:07:15 -0500" Original-Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32894 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32894 Rob Browning writes: > prj@po.cwru.edu (Paul Jarc) writes: > > But use rename(), not link()/unlink(), for appropriate atomicity. > > Well the tricks I know of were designed to make sure you DTRT (as much > as possible anyway), even in the case where the files are on NFS > mounted volumes, but I don't know if you want to worry about that, and > it's possible that rename handles that already... AFAIK, NFS handles rename correctly. In the case of concurrent readers, you definitely want rename, since it guarantees that when a file exists with the new name, it will be replaced atomically, so readers will always find one file or the other unde that name. > > Hmm... nnmaildir's state files are non-Lisp text, parsed manually. > > I suppose (read)ing Lisp expressions would probably be faster, > > though. I hadn't thought of that. > > Might be a lot easier for you to handle code-wise too. Yes, I imagine so. paul