git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: OSX, ZFS, UTF8, git - somebody hates me in this list

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 4, 2008, 21:52 UTC
Message-ID
<20080504215208.GG29038@spearce.org>
In-Reply-To
<86wsm9dbhk.fsf@blue.stonehenge.com>
"Randal L. Schwartz" <merlyn@stonehenge.com> wrote:
Show 13 quoted lines
> 
> repeat by:
>     0) download the OSX ZFS drivers
>     1) Make a ZFS partition on OSX.
>     2) Clone git.git to the ZFS partition
>     3) immediately type git-status:
> 
>     # On branch master
>     # Untracked files:
>     #   (use "git add <file>..." to include in what will be committed)
>     #
>     #       "gitweb/test/Ma\314\210rchen"
>     nothing added to commit but untracked files present (use "git add" to track)
Isn't this just the normal HFS+ name mangling?

Apparently the ZFS port to Mac OS X includes the same braindamaged UTF normalization that is applied to HFS+ volumes, which means they have reused the code or pushed it higher in their VFS layer. Linus has started to add support for teaching Git about this sort of brain damaged filesystem, but nobody has implemented the Mac OS X specific name hashing function required to make Git see that the name it got from the readdir(3) call is the same name Git passed to the OS, just encoded differently.

-- 
Shawn.
Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 2 of 16 in “OSX, ZFS, UTF8, git - somebody hates me in this list”
  1. Randal L. SchwartzMay 4, 2008
  2. Shawn O. PearceMay 4, 2008
  3. Randal L. SchwartzMay 4, 2008
  4. Randal L. SchwartzMay 4, 2008
  5. David BrownMay 5, 2008
  6. Wincent ColaiutaMay 5, 2008
  7. Shawn O. PearceMay 4, 2008
  8. Randal L. SchwartzMay 4, 2008
  9. Shawn O. PearceMay 4, 2008
  10. Randal L. SchwartzMay 5, 2008
  11. Linus TorvaldsMay 5, 2008
  12. TarmiganMay 5, 2008
  13. Randal L. SchwartzMay 5, 2008
  14. Linus TorvaldsMay 5, 2008
  15. Johannes SchindelinMay 6, 2008
  16. Mitch TishmackMay 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.