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

Re: [PATCH] Makefile / racy-git.txt: clarify USE_NSEC prerequisites

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 15, 2015, 00:07 UTC
Message-ID
<xmqqr3pdltqu.fsf@gitster.dls.corp.google.com>
In-Reply-To
<557C9526.6080000@gmail.com>
Karsten Blees <karsten.blees@gmail.com> writes:
Show 8 quoted lines
>  members are also compared, but this is not enabled by default
> -because in-core timestamps can have finer granularity than
> +because on Linux, in-core timestamps can have finer granularity than
>  on-disk timestamps, resulting in meaningless changes when an
>  inode is evicted from the inode cache.  See commit 8ce13b0
>  of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
>  ([PATCH] Sync in core time granularity with filesystems,
> -2005-01-04).

Hmm, the above makes one wonder if on systems other than Linux it may be better enabled by default. Perhaps

	members are also compared.  On Linux, this is not enabled by
	default because ...
would make the logic and text flow better?
Show 10 quoted lines
>  # Define USE_NSEC below if you want git to care about sub-second file mtimes
> -# and ctimes. Note that you need recent glibc (at least 2.2.4) for this, and
> -# it will BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely
> -# randomly break unless your underlying filesystem supports those sub-second
> -# times (my ext3 doesn't).
> +# and ctimes. Note that you need recent glibc (at least 2.2.4) for this. On
> +# Linux, kernel 2.6.11 or newer is required for reliable sub-second file times
> +# on file systems with exactly 1 ns or 1 s resolution. If you intend to use Git
> +# on other file systems (e.g. CEPH, CIFS, NTFS, UDF), don't enable USE_NSEC. See
> +# Documentation/technical/racy-git.txt for details.
This looks good.
Previous: Karsten BleesNext: Karsten Blees
Message 2 of 3 in “Makefile / racy-git.txt: clarify USE_NSEC prerequisites”
  1. Makefile / racy-git.txt: clarify USE_NSEC prerequisitesKarsten Blees, Jun 13, 2015
  2. Junio C HamanoJun 15, 2015
  3. Makefile / racy-git.txt: clarify USE_NSEC prerequisitesKarsten Blees, Jul 1, 2015

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.