Date: Tue, 25 Mar 2003 04:35:20 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Yar Tikhiy <yar@FreeBSD.ORG> Cc: Max Khon <fjoe@iclub.nsu.ru>, Mark Day <mday@apple.com>, "Matthew N. Dodd" <mdodd@FreeBSD.ORG>, ppc@FreeBSD.ORG, fs@FreeBSD.ORG Subject: Re: HFS/HFS Plus driver and tools for 5.x are available Message-ID: <3E804D08.2F270EDB@mindspring.com> References: <20030324225320.B96310@iclub.nsu.ru> <86E4FD83-5E5E-11D7-B20F-00039354009A@apple.com> <20030325114159.A18471@iclub.nsu.ru> <20030325114824.GD26415@comp.chem.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
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-ppc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E804D08.2F270EDB>