From owner-freebsd-ppc Tue Mar 25 8:53:55 2003 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9522237B401; Tue, 25 Mar 2003 08:53:51 -0800 (PST) Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA6D043F85; Tue, 25 Mar 2003 08:53:50 -0800 (PST) (envelope-from mday@apple.com) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.8/8.12.8) with ESMTP id h2PGrksJ017832; Tue, 25 Mar 2003 08:53:46 -0800 (PST) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Tue, 25 Mar 2003 08:53:39 -0800 Received: from apple.com (daylight.apple.com [17.202.44.244]) by scv1.apple.com (8.11.3/8.11.3) with ESMTP id h2PGrjt18761; Tue, 25 Mar 2003 08:53:45 -0800 (PST) Date: Tue, 25 Mar 2003 08:53:12 -0800 Subject: Re: HFS/HFS Plus driver and tools for 5.x are available Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: Max Khon , "Matthew N. Dodd" , ppc@FreeBSD.ORG, fs@FreeBSD.ORG To: Yar Tikhiy From: Mark Day In-Reply-To: <20030325114824.GD26415@comp.chem.msu.su> Message-Id: <439F1CD2-5EE2-11D7-9FEF-00039354009A@apple.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) X-Spam-Status: No, hits=-18.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_APPLEMAIL version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, March 25, 2003, at 03:48 AM, Yar Tikhiy wrote: > BTW, correct me if I'm wrong, but a new signature (HFS has it at > the first two bytes of its volume header) and a change to the > function for comparing two Unicode keys (so it will compare them > respecting case) is all that is needed to make a case-sensitive > variant of HFS. Of course, the utilities (fsck_hfs in particular) > should be changed, too. You'll also want to change the code that deals with the name cache. For case insensitivity, it does some wacky things. If I remember right, it actually stores in the name cache all of the case variants you actually passed into the kernel. That is, if you did a lookup on both "a" and "A", then both of those will be in the name cache, referring to the same file. When you move or rename, I think it ends up invalidating every entry for the directory, instead of the single name. You could get by with the current behavior, but you can get better performance if you made the name caching code work like UFS and the rest. -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message