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
EDEric D <eric.decosta@gmail.com>
Date
Jul 1, 2022, 19:15 UTC
Message-ID
<CAMxJVdG5OCgWMN+0aymdVTorrkeViGNy=f49fu7GJE6trwyoWw@mail.gmail.com>
In-Reply-To
<xmqqmtds8ylz.fsf@gitster.g>
One more possibility:

Leave the check, but make it a warning if there are still concerns about running fsmonitor against network file systems. Maybe also provide an option to suppress the warning? Not that much different from having "fsmonitor.allowRemote" I suppose other than by default fsmonitor would "just work" for network mounts.

On Fri, Jul 1, 2022 at 2:41 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 23 quoted lines
>
> Jeff Hostetler <git@jeffhostetler.com> writes:
>
> > 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: Junio C HamanoNext: Eric D
Message 4 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.