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

Re: git on afs

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 18, 2007, 22:47 UTC
Message-ID
<alpine.LFD.0.999.0710181543380.26902@woody.linux-foundation.org>
In-Reply-To
<20071018203106.GA13518@fries.net>
On Thu, 18 Oct 2007, Todd T. Fries wrote:
> 
> 2) git presumes that DTYPE(de) != DT_DIR .. means the dirent is not a dir
>    this is not true for afs
That's a major bug, and has nothing to do with AFS. Oops. 

If you look just a bit lower, you'll see that just a few lines down, git handles DT_UNKNOWN correctly, and just does a lstat() on it as required. I guess that logic should be moved up, or alternatively the exclude logic should be moved down.

Your patch looks ok, but at the same time, I don't think it's really the right thing to do, since it now does that lstat() twice.

		Linus
Previous: Brandon CaseyNext: Shawn O. Pearce
Message 4 of 12 in “git on afs”
  1. Todd T. FriesOct 18, 2007
  2. Brandon CaseyOct 18, 2007
  3. Brandon CaseyOct 18, 2007
  4. Linus TorvaldsOct 18, 2007
  5. Shawn O. PearceOct 19, 2007
  6. Todd T. FriesOct 19, 2007
  7. Linus TorvaldsOct 19, 2007
  8. Linus TorvaldsOct 19, 2007
  9. Shawn O. PearceOct 19, 2007
  10. Todd T. FriesOct 19, 2007
  11. Daniel BarkalowOct 19, 2007
  12. Shawn O. PearceOct 20, 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.