From owner-freebsd-fs Tue Mar 25 4:39:54 2003 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A519737B401; Tue, 25 Mar 2003 04:39:50 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B8443FDF; Tue, 25 Mar 2003 04:39:46 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0001.cvx40-bradley.dialup.earthlink.net ([216.244.42.1] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18xniR-0004Vf-00; Tue, 25 Mar 2003 04:39:44 -0800 Message-ID: <3E804D08.2F270EDB@mindspring.com> Date: Tue, 25 Mar 2003 04:35:20 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Yar Tikhiy Cc: Max Khon , Mark Day , "Matthew N. Dodd" , ppc@FreeBSD.ORG, fs@FreeBSD.ORG Subject: Re: HFS/HFS Plus driver and tools for 5.x are available References: <20030324225320.B96310@iclub.nsu.ru> <86E4FD83-5E5E-11D7-B20F-00039354009A@apple.com> <20030325114159.A18471@iclub.nsu.ru> <20030325114824.GD26415@comp.chem.msu.su> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a439893b64f2ea2eff64997924841a82aba8438e0f32a48e08350badd9bab72f9c350badd9bab72f9c X-Spam-Status: No, hits=-21.2 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT, RCVD_IN_OSIRUSOFT_COM,REFERENCES,REPLY_WITH_QUOTES version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Yar Tikhiy wrote: > On Tue, Mar 25, 2003 at 11:41:59AM +0600, Max Khon wrote: > > > Directory entries are stored in a B-tree, sorted in > > > part on the case-insensitive name. If you make the names in the B-tree > > > keys case sensitive, your sort order will be different, and you'll be > > > incompatible with existing HFS or HFS Plus volumes. If you want to > > > experiment with this, I strongly suggest using a different signature > > > word. > > > > It can be newfs-time option. > > Case-sensitive HFS+ volumes can have different signature in MBR (or whatever > > partitioning scheme is used on that hardware platform). > > There is a plenty of variants. > > 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. Case sensitive on storage, case insensitive on lookup only works if the lookup happens with knowledge of the case insensitivity. I rather expect that HFS/HFS+ does it's globbing in the kernel, too, unless it depends on iteration. So that would be another difference, as well. I guess the alternative to that would be to iterate everything, and apply the case insensitivity algorithm in the shell, too, but that would probably be error-prone. From my own memory of HFS usage on MacOS, the globbing is in the kernel. BTW: The NTFS/FAT32 has this same feature under Windows, at least as far as that goes, e.g.: C:\>cd "Program FILES" C:\Program Files> So technically, it should probably be handed the same way for those two FS's. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message