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

Re: Option to allow fsmonitor to run against repos on network file systems

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 1, 2022, 18:41 UTC
Message-ID
<xmqqmtds8ylz.fsf@gitster.g>
In-Reply-To
<16832f8a-c582-23bb-dda9-b7b2597a42eb@jeffhostetler.com>
Jeff Hostetler <git@jeffhostetler.com> writes:
Show 10 quoted lines
> Having said all of that, I did do lots of testing and never had an
> issue with remote drives actually working correctly, so I think it'd
> be fine allow a config setting to optionally allow it.  I just didn't
> want to clutter up things in advance if no one actually wanted to
> use it on remote file systems.
>
> I think it would be fine to have a "fsmonitor.allowRemote" or
> "fsmonitor.allowWindowsRemote" config setting and default them to false
> for now.  Or until we learn which combinations of remote mounts are
> safe and/or problematic.

How about getting rid of "is this remote?" check altogether (which presumably would simplify the logic) and make it totally up to the user of the repository? fsmonitor.disableInRepository that is set in ~/.gitignore and lists the paths to the repositories (like safe.directory does), for which fsmonitor gets disabled, may be a handy mechanism to set up the default (and it can be re-enabled with per-repository core.fsmonitor).

Previous: Jeff HostetlerNext: Eric D
Message 3 of 6 in “Option to allow fsmonitor to run against repos on network file systems”
  1. Eric DJun 30, 2022
  2. Jeff HostetlerJul 1, 2022
  3. Junio C HamanoJul 1, 2022
  4. Eric DJul 1, 2022
  5. Eric DAug 1, 2022
  6. Eric DAug 8, 2022

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.