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

Re: "git clone" executed as root on solaris 10 shreds UFS (it is possible to create hardlinks for directories as root under solaris)

From
David Kastrup <dak@gnu.org>
Date
Jul 16, 2007, 12:58 UTC
Message-ID
<86myxw8pzg.fsf@lola.quinscape.zz>
In-Reply-To
<20070716123913.GJ24036@cip.informatik.uni-erlangen.de>
Thomas Glanzmann <thomas@glanzmann.de> writes:
Show 10 quoted lines
> Hello David,
> as I mentioned and showed in my original e-mail:
>
>         git checkout /path/to/repo
>
> triggers the problem also. So no, "cp -a" has nothing todo with it
> because root is able to read _all_ files no matter who the files are
> owned by and what the permissions of these files are[1]. This happens on
> a _local_ fileystem. And what worries me is that git does something that
> breaks the _hard link counter_ of a directory.

Hm? The hard link counter is "broken" by creating or not creating subdirectories, since their ".." is a hard link.

-- 
David Kastrup
Previous: Thomas GlanzmannNext: Thomas Glanzmann
Message 7 of 25 in “"git clone" executed as root on solaris 10 shreds UFS (it is possible to create hardlinks for directories as root under solaris)”
  1. Thomas GlanzmannJul 16, 2007
  2. Thomas GlanzmannJul 16, 2007
  3. David KastrupJul 16, 2007
  4. Thomas GlanzmannJul 16, 2007
  5. David KastrupJul 16, 2007
  6. Thomas GlanzmannJul 16, 2007
  7. David KastrupJul 16, 2007
  8. Thomas GlanzmannJul 16, 2007
  9. Thomas GlanzmannJul 16, 2007
  10. Thomas GlanzmannJul 16, 2007
  11. Thomas GlanzmannJul 16, 2007
  12. David KastrupJul 16, 2007
  13. Linus TorvaldsJul 16, 2007
  14. Linus TorvaldsJul 16, 2007
  15. Thomas GlanzmannJul 16, 2007
  16. Thomas GlanzmannJul 16, 2007
  17. Thomas GlanzmannJul 18, 2007
  18. Linus TorvaldsJul 18, 2007
  19. Thomas GlanzmannJul 18, 2007
  20. Thomas GlanzmannJul 16, 2007
  21. Johannes SixtJul 16, 2007
  22. Brian DowningJul 16, 2007
  23. Brian DowningJul 16, 2007
  24. David KastrupJul 16, 2007
  25. Thomas GlanzmannJul 16, 2007

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.