From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Bug Emacs 21.3: write-file downcasing Date: Wed, 12 Feb 2003 10:50:12 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E4A8954.5060606@ihs.com> References: <20030207163850.3779.LEKTU@terra.es> <2110-Fri07Feb2003191658+0200-eliz@is.elta.co.il> <20030207182150.377E.LEKTU@terra.es> <2593-Fri07Feb2003201921+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045074553 9349 80.91.224.249 (12 Feb 2003 18:29:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 18:29:13 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18j1Km-000180-00 for ; Wed, 12 Feb 2003 19:10:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18j1Wr-0001xG-00 for ; Wed, 12 Feb 2003 19:22:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j1Mh-0005C6-09 for emacs-devel@quimby.gnus.org; Wed, 12 Feb 2003 13:12:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18j1MS-0005B9-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 13:11:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18j1MQ-00058w-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 13:11:55 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j1MO-00057j-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 13:11:53 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18j188-00008Z-00 for ; Wed, 12 Feb 2003 18:57:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18j0zA-0007zT-00 for ; Wed, 12 Feb 2003 18:47:52 +0100 Original-Lines: 40 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11596 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11596 Jason Rumney wrote: > There are already places in the Emacs code where inodes are used (to > deal with hard-links), making a function available for lisp to do > such a comparison and encouraging people to use it rather than string= > seems like a good thing to me. Actually, I've run into a problem that I think is a result of Emacs assuming each distinct file has a unique inode: On Network Appliance NFS servers, there is a snapshot mechanism that is used to retain old versions of files at configurable intervals. Those files are stored in read-only subdirectories, via pointers to the original disk blocks, and apparently they share inodes. Here's a real example of some `ls -lrti` output: 23541505 -rw-rw-r-- 1 edoc edoc 1157 Feb 4 06:00 .snapshot/nightly.7/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1097 Feb 5 06:00 .snapshot/nightly.6/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1127 Feb 6 06:00 .snapshot/nightly.5/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 7 06:00 .snapshot/nightly.4/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 7 06:00 .snapshot/nightly.3/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 7 06:00 .snapshot/nightly.2/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 10 06:00 .snapshot/nightly.1/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 11 06:00 .snapshot/nightly.0/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1187 Feb 11 06:00 .snapshot/hourly.0/PipeStatus.rpt 23541505 -rw-rw-r-- 1 edoc edoc 1217 Feb 12 06:00 PipeStatus.rpt Even though these files have different contents, sizes, and timestamps, they share the same inode number. -- Kevin Rodgers