Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAM5kUvo018398 for ; Mon, 22 Nov 2004 05:46:33 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id A880B77519 for ; Mon, 22 Nov 2004 05:46:29 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CW7Ax-0001dh-TY for migo@homemail.com; Mon, 22 Nov 2004 00:55:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CW7AN-0001db-On for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 00:55:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CW7AN-0001dP-BO for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 00:55:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CW7AN-0001dM-7k for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 00:55:11 -0500 Received: from [219.98.41.181] (helo=bluegate.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CW71F-0007Xj-Cy for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 00:45:45 -0500 Received: from localhost (localhost [127.0.0.1]) by bluegate.org (Postfix) with ESMTP id AAEE69572 for ; Mon, 22 Nov 2004 14:45:40 +0900 (JST) Date: Mon, 22 Nov 2004 14:45:39 +0900 (JST) Message-Id: <20041122.144539.71098295.tez@kamihira.com> To: gnu-arch-users@gnu.org From: Tez Kamihira X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [Gnu-arch-users] [Question] how to preserve multiple file's atomicity ? X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 1145 Lines: 50 Folks, I have a question. Suppose there is a directory named d, which has two regular files named X and Y, just like: $ find . -print . ./d ./d/X ./d/Y $ The contents of X is x, and Y's is y. So I call them as X(x) and Y(y), respectively. Now I'd like to change the contents of each file to x' and y' atomicly preserving each file names, that is, at any time only: There are two files X(x) and Y(y) or There are two files X(x') and Y(y') are allowed, and any other states, e.g. X(x) and Y(y'), aren't allowed, even if any kind of abormal termination occurs, just like Ctrl-C. In ViewARCH's transaction, I meet this situation and I convince that I resolved this problem in my own way with some strictly defined intermidiate state. But the implement is very complex and not so easy to understand. What is the best way to solve this problem ? Are there any orthodoxical way to do it ? - Tez _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/